Paying off your home seems like a quick and predictable return, but there are several factors to consider before you give up on stock market gains.