You did everything right, based on math, but regrets are still difficult to avoid. Here’s what you need to know.