There are studies around that find homeowners on average substantially more wealthy than people who keep living in
rental appartments (I'm mostly talking Germany, were renting is normal and does not imply poverty - but similar findings have also been described for the US) even though someone who'd take the additional money the homeowner put into their home over the rent and invested in other ways would have yielded more value than the home.