Focus on effort, not outcomes.
As Marcus Aurelius said, it’s insane to tie your wellbeing to things outside of your control. If you did your best, if you gave it your all, if you acted with your best judgment—that is a win…regardless of whether it’s a good or bad outcome.