Counterpoint: Being proud of something you did not choose to participate in is a post-hoc rationalisation and just a bit self-delusional.
The statement: "I am proud to be a man", makes as much sense to me as "I am proud to be right-handed".
I am proud of several achievements in my life and ashamed of my behaviour in others. A statement I assume applies to most people. My gender has nothing to do with either.
I do not take credit for the achievements of others of my gender (or of the right-handed...) the same way that I am not responsible for their crimes.
Humans, by our social, tribal nature, love to divide the world into in-groups and out-groups usually to the detriment of all.