You have to realise that landlords aren't the plague. They're the buboes. A symptom.
If you can take your spare money (a concept from days gone by, I know), buy a house for X, rent it out for Y a month, then finally sell it in 20 years for Z, and be 99.99% guaranteed to make more money from it than you can from pretty much any other source, then why wouldn't you?
Remove the incentive for that (homes that don't go up by more than the inflation rate), there will be no need for them to exist.
But in any case, the size of the building projects required would likely be government level anyway, and they can be the "landlord" for anyone not wanting to buy. This was called council houses in the olden days, before Maggie Thatcher killed that.