Don’t forget, you have to pay taxes on all income, including interest. So your 5% APY is not 5% cash in hand. I would recommend that you pay off the loans
Certificate of Deposit - bank CDs and savings accounts, federally and state taxable
Treasury - federally taxable, state tax free
in-state municipal - federal and state tax free
The number is the return you’d need for each type of bond to be equivalent after taxes. Your loan is a tax free return, so consider it as a Treasury bond.