Saving in 401k vs Saving for Home Downpayment

How should one factor in the interest paid on a mortgage? Sure, you can say that a house has increased in value by 1.5x, 2x, whatever. But much of the monthly payment goes to interest, especially in the early years. Maybe consider the interest to be a rent-swap?