As a buyer myself of "buy and hold" rental homes, my preference depends on the tenants! If it is market rent and they are tenants with a great pay history, that's an asset to me. But it seems like that is rarely the case.
I've twice purchased homes with inherited tenants that I knew were already problems (pre-pandemic), ie a detraction. I used that as part of my negotiation to get a lower sales price. Because I was taking over that "problem" for the seller. Back then, it was fairly quick and easy to evict people. The sellers could have gotten thousands more money for their properties if they had just evicted the bad tenants. It made no sense to me but, for whatever reason they weren't going to file evictions so, thanks for the cheaper properties.
If you do decide to rent it out to another tenant, I'd suggest you keep the lease month-to-month. That way, the potential buyer could at least a little bit have the best of both worlds. Keep the tenant if they want to. Or serve a Notice to Vacate after the sale, if they don't. Plus, especially with the nightmares some areas are facing right now with evictions, you want to make getting a potential bad tenant out of there as fast as possible. Either for yourself and/or the new owner.
That is a risk you would be taking in placing a tenant. A non-payer or even they just make showings more difficult because they're annoyed about it. Even with good vetting, bad tenants can slide through. I'm stuck with one of those right now.
Here's another thought. Is this in an area where you would be allowed to run an AirBnB and it would make sense? That might be a great way to earn some extra income until you are ready to list the house. Though keeping in mind the cost to furnish it.