I think you are stating that backwards.
You can definitely say that everything with mass has energy. And yeah the two are kind of interchangeable.
But that does not mean that a photon HAS mass. It just means that we can calculate how much mass its energy is equivalent to.



But then I could go around asking “what do you want?” with a suspicious smirk in my face!