I don't ever consider my primary house an investment. I purchased and put money into projects that allowed me to live in the house. Usually, housing markets are stable enough that at the very least you are either breaking even, making some moeny or at the worst losing a little money to when selling the house. Despite maybe losing some money, consider the overall amount you spent. If done right, you should have at least lived rent free.
There are downsides to owning. Bad stuff happens and you are on the hook for it. A furnace can cost a pretty penny. Water damage is messy, expensive and hard to repair. If you aren't handy, renovations are costly. Even if you are handy, renovations often cost more than planned and take WAY longer than you might want. I wound up doing a lot of punch list work as I was getting ready to sell my first house. I spent years living with my imperfect, incomplete work.
Consider this, though: renting is as bad as leasing a car. There is no financial benefit long-term. That money is gone and you will have no real leverage from that rental to put towards your next adventure. Not even the security deposit with interest will cover the overall cost of renting for a year, though you may get it back with a little interest. You will have spent a significant amount in rent over the time you lived there, more than that deposit + interest is worth.
You do have some benefits (maybe). You aren't responsible for renovations or equipment failure. Hopefully you have a landlord that is responsible and willing to quickly repair that furnace in the dead of winter. You aren't as tied to a location long-term. When the contract is up, you can leave immediately. You don't have money tied up in a house that may not sell at the same time you are looking to purchase.
Ultimately I was able to walk away with a chunck of change for my next house, if I calculated it out, I likely broke even or lost a little money over renovations and interest, but I didn't lose all those payments over 5 years to rent.