The amount of equity you have in your home matters. Most recessions do not take 20% off home values, so people with conventional loans are pretty safe. Even the Great Depression just cut valuations about 35%.
If you lose your job in a depression there will be plenty of people willing to buy assets at a discount. If you have equity in your home then your position will be net positive. About half of all mortgages have an outstanding balance less than 50% of the home's value.
That kinda works in the abstract, but it's pretty risky for any individual house. If your house was somehow a representative slice of all US housing, sure maybe it won't drop 35%.
But if you owned a house in Detroit from 2003-2010 it might have dropped 70-80%. Or, more on point for many on HN, if you own a house in the Bay Area worth $2-$3M with 25% equity, and the tech job market collapses, then you might get completely wiped out.
I think debt is good, actually, for most middle class households, and they're actively trying to increase their debt because that results in greater cash-flow, more savings, and more security in terms of retirement. That's why buying a home is Goal #1 for most Americans.
Home mortgage debt is mostly "good" debt for middle class households. Pretty much any other type of debt is a net negative in financial terms. There are less tangible benefits to owning a newer, more reliable car for example, so it can be a bit murky. General consumption debt is a bad bet for pretty much anyone.