Let us consider an electron and a photon of the same de Broglie wavelength λ
Total Energy
Let the electron have a relativistic mass m
Then its momentum =mv =hλ … (1)
Momentum of the photon is also hλ, so its effective mass mγ=hλc…(2)
Since v<c, m> mγ
Since, E (the total energy) =Relativistic×massc2, it follows that the total energy of the electron is greater than that of the photon, both having the same wavelength.
Kinetic Energy (KE)
In the case of the photon, all its energy is kinetic, which is hcλ.
For the electron, KE = p22m
ThusKE(photon)KE(electron) = 2cv (from (1) and (2), which is >1 (since c>v))
Therefore, KE of the photon (which is also the total energy of the photon) is greater than the kinetic energy of the electron, both having the same wavelength.