What is the return to beat?
It is the yearly return your investment would need to earn for investing to leave exactly as much as prepaying. Above it, investing comes out ahead on your figures. Below it, prepaying does. You can see it without entering any expected return, so you can judge for yourself whether that return seems achievable.