What life’s choices had you scandalised given you could have avoided the entire thing easily in retrospect?

I was in a relationship with a girl for a few months and she ended up cheating on me. I was devastated at the time, but looking back, I can see that it was the best thing that could have happened. It made me realize that I deserved better and that I was better off without her.