Low salary in a cheap city is almost never better. Your expenses will look very different but at the end of the day, engineers in Palo Alto are left with likely 5x the cash in their pocket than those in a cheaper city. I think the value of the leverage you earn with that larger savings is underestimated by many people.