I think that is great how you handled it. I also think you are getting some great perspective on your situation given hindsight.
I wouldn't be making too many decisions at this juncture, but I think you are getting to the point where you are focusing on you and what you deserve, and that is important.
"You can't reason someone out of a position they didn't reason themselves into."