The Contraptions Workshop DLC introduced a range of "Advanced switches". Playing around with these, I found the AND, OR, and XOR gates to work exactly as expect