For XOR with inputs and :
A | B | A XOR B
----- | ----- | -------
false | false | false
false | true | true
true | false | true
true | true | false
Notice the pattern: XOR is true when inputs differ, false when they match. This makes XOR perfect for detecting changes or checking inequality.