One spouse wants to send a giant check to the mortgage company. The other wants to keep the money invested and let the portfolio grow. Both can point to a reasonable argument, but the household cannot optimize for two different outcomes with the same dollars.
The cleanest comparison starts with one question: What return does the investment need to earn before it beats the mortgage payoff? That answer changes once taxes, mortgage deductions, investment risk, and liquidity enter the picture.