On the difference between γ-ray-detected and non-γ-ray-detected pulsars