Nucleons are spin 1/2 particles, fermions, interacting predominately by the strong nuclear force. The proton and neutron have very similar masses (around 0.1% difference), it is only the charge which differs, the proton being positive and the neutron being neutral. Therefore it is only the protons which interact via the electromagnetic force within the nucleus and this plays a minor role compared to the strong nuclear force.