Your situation
Every assumption is editable — the honest answer is "it depends", so try your own numbers.
This is a simplified model: it ignores tax, transaction costs on buying and selling, and the non-financial value of owning (security, freedom to renovate) or renting (flexibility). It also assumes steady returns — real markets move in jumps. The result swings hard on the growth and investment-return assumptions, so treat it as a way to test your thinking, not a verdict.