The ideal situation is Tokyo, where a lack of culture in speculating on housing coupled with population decreases leads (going down in the metro area for the last three years) to housing affordability.
If you increase the supply by enough, that will tip the balance to where the market clearing price will go down.
Just like the entirety of Los Angeles couldn't move to Santa Barbara without Santa Barbara being changed forever.
The closest reasonable equivalent we can do is maintain the quaint "old town" and build a "real city" around it where people actually live and work, and the old town remains as a tourist destination, basically.
This is the case in much of Europe. The Paris you visit and the Paris people live in are often mixed, but they're noticeably different.
Rapid mass transit to city centers can hide the distinction.
This is a good thing. If SF is so great, many more people will be able to go there.