If you’re torn between renting or buying, don’t forget to factor in the wealth-building power of homeownership.