I had to swallow my pride and I hate it
Why did you swallow your pride?
I had two options; either suck it up or leave. I picked the former.
It's normal to want to protect your pride, even if it is required to make a tough decision. It sounds like you made the only decision you really had, even though it does hurt. Be proud of yourself for doing what needed to be done and focus on the positives that come from now on.
I learned a lot about what it means to let your pride go.
You grew as a person and set aside your ego to accomplish something greater. The more selfless you act, the easier it will be for you to consider the entire scope of the situation.