I must admit when I was younger I was a bit like this. I would fall into resentment and let people bother me over the long term but that only ended up harming me more than it did them. These days I will let a lot go, mainly because I don't care enough what they think and am more than comfortable with who I am but on the other hand, I'm also far more likely to just confront someone and escalate the situation immediately if they really push things too far.
That's been working out well for me so far.
I try hard not to but sometimes I still do. My dad showed me the best way to handle it after his best friend got my dad forced out at the company they were working at. To this day whenever my dad sees his ex-best friend at an event, he goes out of his way to treat him like an old friend he never sees. Apparently it makes the guy extremely uncomfortable when my dad does that and the guy looks for the quickest way out of the situation. I've tried to emulate that whenever I've been wronged but many times I can't bring myself to be over the top nice.