Using that number means I'm roughly at par with a FAANG salary given my level. But it's not like the FAANG engineer is setting fire to that 240k. Depending on where you are in your amortization schedule 20-80ish % of your payment goes to principle. And my 500k house is probably going to be worth 800k in 10 years while the bay area house would be 4.5-5 million. When you take that into account I'm probably at 70% of an equivalent FAANG position.
The more important thing to look at here is risk. FAANG salaries and bay area real estate prices are out of whack with the fundamentals. If you get in and out without the bubble bursting you're sitting pretty. If it bursts or even has a 10% correction the FAANG engineer is way behind.
[1] https://sfbay.craigslist.org/sby/apa/d/cupertino-3-bedroom-3...
You'd have to pay me 10 times more than I get now, with a huge hiring bonus, to make me move to San Francisco. I'm not alone in this thinking. This is why the market rate is high.
Part of that is sort of circular, due to the bidding war for housing. Part is that some people just hate the political insanity. Part is that people have family connections elsewhere and they have hobbies that are incompatible with San Francisco.