Don't immediately use an unexpected cash infusion to pay off certain types of debt. Here's what you need to know.