XOR trick to exclude subset