A good long-term investment:.
You are investing in an asset for yourself rather than a property management company.
Also, since you own the property, you can renovate it to your liking, a benefit of home ownership that renters don’t enjoy.
People tend to stay longer in a home they buy, if only because buying, selling and moving frequently is difficult. Buying a home requires confidence you plan to stay there for several years.