A truly worst-case scenario would involve losing your job when unemployment is 10-15% and major employers have closed in your area and you'd be just fine if you could move... but... you're underwater on the house, so you commute 100 miles/day. And mortgage rates in this future scenario are twice what they are today (i.e. historically normal) so no one can afford the payments on that home anyway unless you're willing to take half price...
Compared to using a house as a hedge, what if you used options instead? If your portfolio was all SPY, for example, you could buy a put and sell a call (known as a collar) to limit both your upside and downside to a reasonable ROI for a minimal cost, or even a small credit. E.g. you could sell your upside above, say, 7%/y and use the proceeds to buy protection that kicks in if losses exceed 7%/y. You can't do that with physical property.
For housing, I'd pick the cheaper path in terms of today's cash flow. If you buy, just try not to fall into the trap of going from 1BR to 3BR just because that's what the market has most of. Also resist the urge to remod, redecorate, customize, etc. because it's "yours".