Buying va renting is often not simply a financial decision.
People often consider other things like stability, fear of being priced out of the market in a location that you are tied to, etc.
If it helps, we are the same age as you, we make around the same as you, and we recently bought a 635k townhouse with a 220k downpayment, in a MCOL city that is touted as being one of the fastest growing cities in Canada. Housing prices have doubled in the last five years.
It’s perhaps not the fastest way to grow our money, but we feel it’s the right decision for us because we wanted some stability (got tired of having rental contracts terminated by landlords, and did not want to be priced out of the market). We were willing to pay for that stability and understood the costs associated with owning.
Besides, there are ways to househack such as renting out extra bedrooms, or buying in a good location where houses rent easily, so if we do move, the house can generate enough rental income to cover its own expenses, both of which we have done. It’s brought our housing costs down by about 50%. So we are paying less than what it would cost to rent, except we have our own larger house.