It’s time to cut your losses and move on. What feels like a defeat is really a victory.