If you are willing to suffer like that (have roommates, not have all the kids you might want, not have a stay-at-home parent...) to deal with the cost of rent in San Francisco, then you can also do it elsewhere and live even cheaper. Detroit could be nearly free.
So, that doesn't help SF or NYC. The cost-saving measures work elsewhere too, getting you something better or an even lower cost.
Living in a place like The Ghost Ship is not good for you, even if you don't actually die in a fire.