For 30 footers, out of the water is best.
For bigger boats, it depends on how close you are to a haul-out marina, availability, timing etc.
Trying to outsail a hurricane is a bad strategy if you are already in harbor. Generally you get far up river if you can, or you just tie up very well in your marina, or anchor as best you can in the most protected location.
If you’re anticipating an inbound tsunami, and hop on your boat and get a few miles out to sea, in deeper water, the tsunami is essentially harmless, right?
Even though after it hits, there’s nothing to return to.