I think you’re okay either way but personally if I have an emergency fund and no higher interest debt, I’m paying that off for sure. Even if I lost a couple bucks, worth it for peace of mind.
Would be different if the debt was a mortgage at 3%, which many people do have right now.
Edit: One note for folks doing similar math, don’t forget interest and yield on bonds are taxed as ordinary income (20~30% in the US).