I’d much rather see a person work for a soul-sucking Fortune 500 corporation that has a 401K plan with company match that they can max out than be a landlord for even one day.
The key here is to take a solid 15% of your take-home pay and save/invest it OUTSIDE your 401(k) plan. Even though these are taxable investments, they give you a heck of a lot more flexibility and can be tapped if needed for things that are necessities or even just productive ventures (a side hustle, for example).