A congenial but mediocre developer may actually be more valuable than a rowdy and talented one because she pisses off less number of other brilliant developers.
But that congenial/mediocre developer is still taking up a headcount that could hold a congenial/high-performing developer instead. There is also a separate issue where mediocrity discourages high-performers.