Suppose we have an indestructible box that doesn't let through any matter or radiation or whatever. In the box, there is matter which is evenly distributed (state A). The energy content of the box is thus $$E=mc^2$$ where $m$ is the rest mass of the matter$^1$.
Now suppose the box contains 50% matter and 50% antimatter that reacts in such a way that the outcome of the annihilation is 100% radiation (photons, state B). As energy is conserved, the energy of state B should be $$E=pc$$ where $p$ is the sum over the absolute values of all photon momenta.
Question: Could an external observer distinguish between state A and state B?
According to $E^2=p^2c^2+m^2c^4 = \text{const}$, state B should behave just like a box with (evenly distributed) mass $m=p/c$, i.e. exactly like state A?
What confuses me: Energy from mass (density) does not look the same in the stress-energy-tensor of the Einstein field equations. Even if the momentum vectors are cancelling each other out (which they should), leaving only the time component (energy), what happens with the immense radiation pressure of state B which does not cancel out? Does this lead to observable$^2$ differences between A and B? Where is pressure and stress being accounted for in $E^2=p^2c^2+m^2c^4$? Or is that equation just an approximation that assumes no pressure?
$^1$Assuming thermal energy, pressure and stress etc. can be neglected.
$^2$ Observable from ouside the box.