Life insurance can do more than cushion finances after a loved one’s death. Here’s how to decide what type is best.