Good thing CA is a non-recourse state, which means your mortgage comes with an embedded put option. When you consider the option value of the put, the option value of locking in interest rates (ie a call on a long-term zero-coupon bond), the inflation hedge, and potentially lower month-to-month costs (not unheard of, depending on your tax bracket) it makes it pretty easy to break even or minimize your losses even given a fairly bad story, over a 5-10yr period. This assumes you actually run the numbers.
That's not even accounting for the consumption value of the house itself.