Simplify AND by choosing which value to use based on the first argument only.