How to deselect non-manifold geometry?
Let's have some selection, from which we want to deselect non-manifold geometry:


Invert selection CtrlI:


Select non-manifold ShiftCtrlAltM:


Invert selection CtrlI:


Tadaa!