Allow yourself to feel what you're feeling, whether that's anger, sadness, or bitterness. Talk these feelings out with someone you trust or write it down in a journal. Once you've gotten your feelings out in the open, focus on learning from your defeat. Failure is an important part of improving, so you'll be more successful if you take that defeat and use it to learn and grow.