Over short term windows it’s very possible for renting to make more sense. Over the long term it’s very difficult for renting to come out ahead. If you’re talking about the same town over say 20 years then the chances of renting coming out ahead is near zero.
In the US at least the tax system is also heavily setup to favor home ownership. Mortgage interest and real estate taxes (which are baked into rent) are tax deductible for the home owner and not for the renter. That’s another big difference that adds up over time.
Only if you really stay. You never know when you will lose your job and the only thing to find requires on site in a different city.
Renting and buying tends to work out the same in the long run if renters invest the difference on the early years - but which they rarely do