Effective transit is what makes tall buildings in Tokyo work.
SF would need to invest tens or hundreds of billions of dollars in transit in order to make Tokyo style densities work. Just digging out the sides of Embarcadero station to allow two-sided boarding for BART is projected to cost a billion dollars.