(#18942) Add XOR operator

Adds support for the xor boolean operator.