Don’t dwell on what you didn’t do; give yourself credit for what you did do.
You are not a mistake you made. That is something you did, not something you are. Learn from what you did, and move on.