It is equally an impossible idealization to think that people usually do set aside their emotions, and only make "technical" criticisms objectively.
The phrase "resource allocation" should have tipped us off to how fast and hard this becomes Machiavellian. If one programmer kisses up much better, went to the right school, or is of a preferred race or political party, or successfully claims the work of the other, etc. - the boss will mysteriously find that this one is more competent.
Since the rationale that we decide everything by merit is unassailable and taken for granted, we bias merit judgments to suit our goals. Any objection can be met by accusing the objector of being emotional and wanting to compromise the merit-based system. In reality merit is determined by a political process.
Every single HN poster will, by amazing chance, turn out to be a shining exception to this rule, completely unbiased by personal opinion or politics.