Example 1: £200 a month on a 4.9% mortgage
Imagine a £225,000 repayment mortgage with 23 years left and an interest rate of 4.9%. If you overpay by £200 a month, the mortgage could finish roughly 3 years earlier and save around £20,000 to £25,000 in interest over the remaining term.
Investing that same £200 each month might produce a higher long-term pot, but only if returns are strong and you stay invested through the rough patches. You may end up ahead, but you may also have years where the value is below what you put in.
If certainty matters and the mortgage rate already feels expensive, overpaying may be the easier decision here. If growth potential matters more and you have time, investing may still be worth considering.