From the photoelectric effect, we know that a photon can kick an electron outside the atom if it has the right amount of energy ($E_{\gamma} \geq W_0$).
On the other hand, pair production tells us that a photon can annihilate to form an electron and an anti-electron (positron).
I'm wondering, how do we know that a photon in the photoelectric effect will actually interact with the electron not annihilate to form a positron and an electron, then the positron will interact with the electron in the atom while the other electron will be the one moving around?