Meanwhile in capitalist China[1], they're so great at building homes that there are entire cities with barely anyone living in them, "ghost cities". Insofar as a tight housing market contributes to homelessness, it's clear that it's caused by US/Canada specific factors (eg. NIMBYism, building codes, and environmental regulations) than capitalism.
[1] Even though ostensibly it's "socialist with chinese characteristics", for all intents and purposes the real estate sector is capitalist.
but you are right that the capitalist market does restrict the supply of housing because people buy them as investments
also, the ghost cities is way overblown -- they just took time to fill up
Fentanyl and meth imported from China and other countries
EDIT: For naive downvoters. It is an observable fact. Drugs are destroying people and causing homelessness. I have witnessed it first hand.
https://www.youtube.com/watch?v=p5AeGKSDVdE
https://www.youtube.com/watch?v=SwlIAjcYypA
Look up "Philadelphia zombies"