Since photons have an energy given by $E=h\nu$, we could define a particle whose rest mass is such that it has the same energy than the photon: $E=m_0c^2 \Longrightarrow m_0=\frac{h\nu}{c^2}$. We now have a way of computing the linear momentum of the photon with an analogous massive particle, which is given by: $p=mv=\frac{h\nu}{c^2}\cdot c \Longrightarrow p_\gamma=\frac{E_\gamma}{c}$, which yields the correct expression for the linear momentum of a photon.
My question is, is this reasoning correct? Is it valid to deduce the properties of a boson by making an analogous reasoning with its equivalent baryon in terms of energy? What do you think are the limitations of this reasoning? (Of course, one of the strongest drawbacks is a massive particle cannot travel at the speed of light as I have assumed when calculating the linear momentum. However, I do think it might be useful in some cases to define a "photonic mass" as to simplify calculations)