No you can't, unless you have a method for dividing a project up into blocks of exactly equal difficulty. The person who takes more time to do genuinely difficult things is probably closing fewer JIRAs than the one quickly cranking through easy ones, which would score more highly on that metric, but which is the more valuable to your organisation?
Why would you ever want to evaluate employees by any metric not directly tied to their contribution to company success?
Usually from the point of view of the problematic person, everyone else is the asshole. At some point the evaluation has to boil down to a judgement call, rather than an objective measurement. This process is always fraught, for instance when the bosses are the assholes themselves or support them (ahem, Travis), but I don't love the idea of just not considering interpersonal factors when evaluating performance. Bad behavior shouldn't have to rise to the level of an HR complaints before consequences are faced, and good behavior should be rewarded.
What metric would you recommend?
This isn't, by the way, an original concept; the dangers of the inappropriate use of micro-level metrics that aren't tied to business outcomes in decision-making (and the individual employee level is about as micro as you can get) was one of the key problems W. Edwards Deming identified.