Your also missing something though. The amount put away into a 401K is much higher in SF then in San Ant. TX. I would much rather work on San Fran for a few years, make a ton for my 401k then move some where cheap and rural in my 30s. San Fran people also have more cash for trips compared to Antonio. Overall, The higher salary is better in the long term.
Comparable salary in San Antonio, TX $58,363
If you move from San Francisco, CA to San Antonio, TX....
Groceries will cost: 24%less
Housing will cost: 66%less
Utilities will cost: 13%less
Transportation will cost: 11%less
Healthcare will cost: 15%less