people do not think about it rationally.
The money you earn in SF is mostly not your money, its the landlord's money.
You can work in London, live outside the M25, and have 35 minutes commute time, in a train, and pay reasonably normal rent/mortgage.
I am not sure if you can live outside SF and work in SF and spend less than 4 hours commuting eveyday.
I've just received two offers one for permie £100k and £700/day for a contract, I'm pretty certain I would be left with more money here that I would in SF even if im on $180k.
Being in SF with family/kids is a game over I guess.