Ignoring risk, evaluating the financial benefits and costs of home ownership (as opposed to renting) isn't simple, but it is straightforward: just an application of computing net present value Net present value using your expected investment returns as the discount rate. As an example, see this spreadsheet.
The complexity arises when we realize that taking a mortgages is equivalent to leveraging your investments, which necessitates increasing your investment's risk.
Recall that in the log-normal model, investment returns grow linearly with leverage, but investment risk grows quadratically since they're based on variance rather than standard deviation.
The complexity mainly comes borrowing higher amounts. For instance, if you borrow 70% your net-worth, then you run into a very real possibility of losing everything.