You can never really lose, if you don't lose the lesson!
It is true when we grow up " learning from our mistakes".
How often have you learned a life-changing lesson without the struggle? For most of us, the answer is, "Rarely!"
You should not pretend to be happy about missing the mark you were aiming for, I am simply reminding you that as long as you take away a specific lesson from that situation, then you can count it worthwhile.
To change your results next time, you'll have to do more than just "try harder."
To get that better result in the future, you will need to evaluate and take an up-close, honest look at what you did (and didn't) do, seeking how you can improve.
It can be painful to do it honestly, but it is the best way to get better results!
Remember, the definition of insanity is: Doing the same thing but expecting different results!