Graph Neural Network Surrogates for Contacting Deformable Bodies with Necessary and Sufficient Contact Detection