I don't really know anything about CSP, but: a layer always has an even amount of edges. But it can have even or odd corners. I believe turning U or D changes parity depending on if corners are odd or even. The same should be true with slices, a slice with 2 corners and 8 edges should not change parity, but 3 corners and 6 edges should since 3 corners is a valid cycle but 6 edges can't cycle without also having a two-swap.