When the electron and positron - as well as the proton and antiproton - are attracted, the particles are completely annihilated into photons.
When the electron and proton are attracted, their electric fields merge, emitting photons. This fusion stops at a short distance from the atomic nucleus.
<aside> 📌 Presumtion: In the atom, when electron and proton approach, the electric fields of electron and proton merge to an insurmountable distance. Photons are emitted in the process. ↓29↓
</aside>