That's true of essentially everywhere. The Bay Area is something of an outlier--partly because of geography--but there are a number of large expensive metros that you can still get to pretty affordable housing by driving an hour or two. (Or even taking a commuter rail in some cases.) To say nothing of the many metros that aren't especially expensive.
There are places outside of Toronto, Canada which are affordable and have better price to comfort ratio. London Ontario, Gatineau Quebec, Regina Sask, Calgary Alberta are quite affordable and have all the modern life style options available.