It's a big decision.If you don't pay off the debt, you'll waste a lot in interest.If you don't invest, you'll miss out on the power of compound interest.
Debt can feel crushing and emotional.Take a look at your debt and the corresponding interest rates. If you're unlikely to get a greater return in the market, you have your case for paying off the debt.
The power from compound interest comes from time in the market. So the sooner you start, the better. it's a good idea to prioritize investing if you have low-interest debt.