Trying to buy a home

We all hate landlords. I don't want to be one. I don't want to have one. I have the opportunity to opt out, but there's a moral dilemma standing in my way.

A home got listed for sale an amount that I can afford (if I'm not also paying rent) and I was about to put an offer down but apparently, the seller decided to rent it out and just found a tenant and signed a lease. So if I buy it, I either become the landlord or I have to kick someone out of their home. Both seem like they'd be wrong, but how else, other than buying the place I can afford, do I escape from renting from landlords? Is there inherent virtue in having one less property collecting rent?