Good point. Thank you for clarifying. The legalization of multi-family homes would not prevent this trend but zoning for owner occupied units seems like a reasonable policy to shift the outcomes.
Renting has some benefits over owning. Particularly if you are in a stage in life where it's valuable to change your city.
In America, we have policies that subsidize owning over renting, like the mortgage interest tax deduction. I don't think we need more policies to make renting more expensive.