Cheaper places are almost always cheaper due to lack of economic opportunities. If one needs to or desires to reduce income volatility (and have upward potential), the SF slum would be better.
On top of that, more expensive places might have access to better judicial systems, educational opportunities, and networking opportunities for kids.