It’s not just about money, but about what each option can do for you. When you rent, you have the freedom to leave almost whenever you like and you’re not generally responsible for maintenance, but with owning your own house you can build equity as you pay off your mortgage and can create income by renting out a portion of your home. There are pros and cons to either sides, consider these when calculating the money aspect as well.
This is a complicated question and depends really on finances, cost of the house, rental market in your neighbourhood and the mortgage rate you acquire. There are many calculators online that can help you figure out if you’d be better purchasing your home, or renting long term.