When I moved to SF when I was 25, I sure could not afford a house or even a condo.
But I sure could have bought a house in the Tahoe area.
Would the commute suck? Yes. Could I have made a go of it? Slept in my car during the week?
I sure would have built a lot of equity, plus you'd have a cool place to go on weekends and invite your friends.