I don't think being a "jerk" is a personal trait, it's an environmental result.
Sometimes people are very picky because they are trying to stonewall you. They come up with review comments that might be accurate, but aren't actually intended to help the change land. Maybe they review just far enough to veto, and then you fix that and they review enough to veto again. That kind of jerk is not worth much, but it's the malintent behind the impolite behavior that is the problem. Often the person is disengaged and disinterested in their job.
Sometimes people are become defensive and difficult because they don't believe they are contributing enough compared to their past performance. I've seen a lot of people who did a lot of good work in the past, but aren't doing well now. Maybe processes changed, maybe how the team makes priorities changed, maybe technologies changed, maybe they aren't managing themselves well, maybe they are just depressed and having a hard time functioning. Maybe it's compounded because their own displayed confidence backed them into a wall, and they can't admit there's something they don't know or aren't able to do, and so they can't learn to do it. These jerks are "essential" (because they know stuff, maybe have authority), but not productive. Sometimes they stonewall to hide this.
There's jerks who have their own agenda that doesn't align with some of the people they are supposed to work with. It a matrixed organization everyone validly has independent agendas that cross with each other. Maybe they only feel personally responsible for product quality, while they are a gatekeeper for people who are supposed to deliver new functionality. Because of how authority may be setup, someone may feel trapped between two authorities (their boss and this gatekeeper) with no way to come to agreement on priorities. Usually this is a lack of understood overarching priorities from leadership. Sometimes without that in place the only way to "win" is to be difficult.
Personally I don't have a problem working with abrasive personalities so long as we truly share a goal and are working towards it. Having a group of people who really share a goal is not as common as one would hope.