This is a common controversy, and your analysis is interesting, especially since you look at a range of situations.
Here's my take...
Not everyone's situation is one where buying a home is sensible (here are 15 specific cases where it's not a good idea: https://themakingofamillionaire.com/15-sure-reasons-renting-benefits-you-over-buying-a-home-50500a45bbc8).
However, here's the analysis showing that with reasonable assumptions, most people would benefit from buying a home if it's similar to what they'd be willing to rent: https://medium.com/financial-strategy/if-youre-renting-your-home-you-need-to-see-this-1dd55f06dfa.