While I sat with it, I did become more financially comfortable, but it wasn't the money that changed my mind.
And yes, across all income levels, I do believe making a profit from housing others is immoral. But like, as long as we have major corporate landlords I'm not going to spend much thought on mom and pop landlords. If you are renting a spare room out it's like, "hey, I don't agree with what you are doing, but I understand it."
The trouble of buying a house for a couple of years is more costly and time consuming than just renting. Living in a decent hotel for a couple of years would be crazy expensive and is illegal in many places.
There's a lot of different levers we could pull, none of them solve the problem, all of them introduce other challenges. But we could definitely make a better system than we have today (for renters and individuals. Less so for landlords.)
I'm lucky my career has worked out, it's given me opportunities to help others and really sit with the question, "what do I feel is right and moral?"
Edit: I think I had read about someone doing this via hacker news, actually, and asked "what would it cost me to do the same"