Since you aren't building equity by renting, you can think of rent as an unrecoverable cost (spending with no return). There are also unrecoverable costs of owning a house such as maintenance, property taxes, and insurances. This amount is generally 5% of the home value per year. Compare your annual rent costs and the annual home costs and you'll see which is more financially optimal. Obviously there are more factors to consider besides the $ but this is the best way to compare the costs
You’re missing the biggest unrecoverable cost that is consumption of the house / opportunity cost of capital. Owning a house can be decomposed into buying then renting out a house to someone, and then also renting that house from someone else. If you wouldn’t buy the house to rent out to someone else at prevailing market rates, you’d be better off renting yourself from someone else in the same area.
For example, a $250k house would have $12,500 of annual expenses. Annual rent for a $1,200 is $14,400. You'd save $2 grand a year by buying the house. So buying is the better option strictly from a financial perspective. But some people are willing to spend more on rent given the advantages like flexibility, no responsibility for maintenance/landscaping, and overall ease compared to owning a home