Rest energy of electron: 0.510999 MeV
Rest energy of proton: 938.257 MeV
(Rest energies are same for anti- variants of particles)
Because conservation of energy applies, a photon of energy 2 MeV could only produce an electron-positron pair but not a proton-antiproton pair.