Every extra dollar you send to mortgage principal earns exactly your mortgage rate. Guaranteed, no market risk, no statement to check. So the question isn’t “pay it off or invest?” in the abstract. It’s whether your rate beats what a safe investment pays after tax, and right now the answer splits sharply depending on when you got your loan.
Prepaying is a bond, not a stock
Treat an extra principal payment as what it is: a risk-free investment that pays your mortgage rate.