Both paths start with the same cash
A buyer commits a down payment and closing costs. A renter who is comparing honestly invests an identical sum on day one, and whichever path is cheaper each month invests the difference. Comparing a mortgage payment to a rent cheque instead is how calculators end up recommending a purchase that loses money.