General rule, denser is better, older long dead is better, does it sink?
Probably not if you found it on the beach
I've found things in the desert, on hills sides that where really hot, dry, oaks, Manazanita, Madrone, cedar, Cypress, Redwood, all of which are confiers........and even some pines at high elevations.
Since you live in HW, best to look up creeks and in lakes, rivers etc.
If it's not rotten, it's likely fine, remember if you use carbon and do frequent water changes, the wood will pose little issue chemically.
Beach wood has never been that great for me.
The mouth of a river tends to be a good spot though after big storms.