In general, long thin slits are very leaky, whereas holes as big as a nailhole make almost no difference (except at higher frequencies they start to matter more). Because EM is a transverse wave it generally needs a slit to get in.
electromagnetism is crazy. Would be fun to code a simulation of this. Always wanted to do that.