In 5 years from now, your buddy Joe is making ~127.6k, you are making ~89.3k. Joe has gained 8.3k more than you GAINED, (which is greater than the difference you pay in rent) So now Joe clears ~75k/year (after tax and rent), and you are clearing ~54.7k. The gap is only going to get bigger from there as time goes on, that's only after 5 years. You've GOT to think of money in terms of percentages, not just hard dollar values, or it's going to bite you.
I guess I am really just trying to stress the fact that people all too often see money from a liner point of view, when in fact it can be advantageous to explore the exponential growth side of money as well. That's all I really want to get out there. It's a balance between basing decisions on the known present or the unknown future.
Rent typically goes up every year, so the amount you're saving versus renting increases annually, and at the end of the "limited time" you're not paying a mortgage at all.
There's life outside of Palo Alto and SoMa.
I agree that telecommute could be the right choice. But then SF vs Minneapolis comparison is getting meaningless.