If you’re trying to decide if buying a home is worth it, consider the long-term benefits, like building equity as home values grow over time.