San Francisco is actually a good example of what NIMBYism does. Zoning restrictions and rent controls that are unrivaled in the US did everything to that city you've just stated as things to avoid while attributing them to "MegaCo".
The housing market by its nature has a weak flexibility to adapt to new demand. NIMBYism acts like a lever on that inflexibility.