If anything, more real estate investment would create more housing stock. Someone’s not building enough.
Lastly, we've got NIMBY - this is the source of nearly all our housing woes because if you could buy up all those single homes in SF and convert them to condo towers we'd solve the housing crisis overnight - but that would "ruin the neighborhood" and, more importantly, depreciate the value of all those inflated house prices - and that's why all the neighborhood councils will continuously vote to perpetuate the shortage of housing.
People do want to build more housing - but people who own the land are stubborn assholes. When it happens that an investor manages to secure a full block of single family homes in a downtown core they'll almost always try and convert it to condos - but then they've got to fight against the NIMBYism and they'll usually lose because as every 80's movie ever taught us: "The evil developer is trying to tear down the community center - we've got to stick up for the neighborhood and win that tournament!"
Also, a lot of the opportunity for large scale projects is gone; building a large tract of homes in the Bay Area means building super-exurban in places like Tracy. Projects like the Vallco mall replacement in Cupertino take a decade+, and what ends up getting permitted will not usually look anything like the initial plans, or what's technically allowed by law. (This is changing slightly in California in that by adding enough below-market-rate deed restricted units, you can build according to code and zoning without greedy neighbors vetoing the project. )
So yes Toronto might have been influenced by rich Chinese buying properties, but does that extend to Canada as a whole?