Simplify binary operations where one operand is a select instruction.