Neurons can do XOR gates.
My first home assignment after being introduced to NN was to draw an XOR gate on paper using neurons.
How to do it, is left as an exercise to the reader.