The decision whether to buy or rent a home may have long-term implications.