Suppliers can make money by withholding supply in an inelastic market. Supply and demand effects depend on elasticity to work. It’s not just NIMBYism which contributes to housing’s inelasticity. It is a basic need, with no substitute, and a long time horizon (for building and moving). Pricing power is a motivation for keeping houses off the market (besides just speculation). You seem to think NIMBYism is the only contributor to that.
And investors providing rentals contribute to supply also, sure. Yet pricing power among suppliers plays a role here as well.
My argument is not that increasing YIMBYism is bad, but that it is a meager half measure that can at best nudge housing prices, not fix the essential problem.
For example, even with
a completely efficient and housing supply, with housing selling at cost, people would still be homeless, as homeless people lack money to pay for housing at cost. By ignoring the wealth composition of buyers, we can at best make housing more elastic through YIMBYism, applying a bandaid rather than fundamentally addressing the housing problem itself.