Write a sentence about a situation when you ( you as in if you were a character) were derisive to another person

In a fit of anger, I couldn't help but be derisive towards my ex, mocking their failed attempts at success, despite knowing it was a hurtful thing to say.