Return correct operand for min and max when numerically equivalent