If they both use Einstein's E = mc^2, with the same constant, non-zero mass. they should behave the same. For a photon, E = h(bar)xomega(0) is a constant, so E/c^2 is a constant mass.
One cannot use Einstein's energy-momentum theorem E^2 - (cp)^2 = m(0)^2 c^4 on a lightspeed particle, but only on an atomic particle. This is because the E in the above equation is given by E = m c^2 = m(o) c^2 gamma, where the Lorentz factor gamma is infinity at lightspeed. If the mass of the particle, here denoted by m(0), is a constant, then the energy is infinite, and there is not enough energy in the whole Universe to make this come true. If we take it to be the constant mass of a photon of constant energy, then the photon would also have infinite energy which would prohibit from traveling at the speed of light. So a photon with constant mass when traveling at the speed of light, that is all photons normally experienced, cannot be validly said to obey Einstein's E = mc^2 or the associated energy-momentum theorem. Einstein's E = mc^2 does not apply to any particle that travels at the speed of light. I asked this question so the reader would be forced to come to this conclusion, which is the correct conclusion. Photons actually obey a different law, the law of photodynamics. Read my paper on Photodynamics, on this site, researchgate, under my name, to discover the actual equation which applies to the photon and all particles that travels at the speed of light. The bottom line is that any photon with a constant frequency, that is a constant mass, cannot obey Einstein's E = mc^2.
You wrote " This is because the E in the above equation is given by E = m c^2 = m(o) c^2 gamma, where the Lorentz factor gamma is infinity at lightspeed. If the mass of the particle, here denoted by m(0), is a constant, then the energy is infinite, and there is not enough energy in the whole Universe to make this come true'
Please see how E =mc2 Has been derived at first place.... There is proper rigorous derivation ...Derivation started from work energy theorems dw =F. dr .... Where F = Mx acceleration .... Mass in this equation is a relativistic mass... Why you not look up the derivation .... You think that by some magic people has concluded E= M0 c2 ...No... There is no magic .... Equation is perfectly valid.... There are various other method through which same conclusion has been drawn...Take a look in attached paper. Stop your irrational thought...
I asked the question in that way so that people like you would conclude that Einstein's E = mc^2 does not apply to the photon. Congratulations if you came to the same conclusion, if indeed you did. Take a look at how I derived the Einstein energy momentum theorem in my paper Photodynamics. It is probably the easiest and quickest way of deriving it. The question shows that although the mass of the photon is constant, you cannot put that constant mass in the Einstein equation because it would lead to the photon having infinite energy. Again, this shows that the Einstein equation E = m(0) c^2 gamma, where m(0) is a constant mass does not apply to the photon . It must be replaced by the valid expression for the photon which reads E = m(0)c^2/gamma. Again, read photodynamics on this website, researchgate, under my name.
After you have read my paper, and you use the correct equation, tell me if I am irrational. By the way Einstein's equation is perfectly valid, but only for atomic particles whose relativistic masses goes like m = m(0)gamma, not m(0)/gamma like particles that go at the speed of light.