Suppose a classical Hamiltonian of the form $$\mathcal{H}=\frac{1}{2m}(p^2_x+p^2_y)+a(x^2+y^2)^{1/2}$$ We know that this change to following quantum operator
$$\hat{H}\rightarrow -\frac{\hbar^2}{2m}\left(\frac{\partial^2}{\partial x^2}+\frac{\partial^2}{\partial x^2}\right)+a(x^2+y^2)^{1/2}$$ in coordinate basis. But due to rotational symmetry I want to work in polar coordinate for which I need to do the transformation from one coordinate to another.
But why I can not do the following directly from starting from Hamiltonian to be in polar coordinate. So that $$\mathcal{H}=\frac{p^2_\rho}{2m}+\frac{p^2_\phi}{2m\rho^2}+a\rho$$ and then use the directly use operators from here: $$\hat{P}_\rho\rightarrow -i\hbar \frac{\partial}{\partial \rho} $$ $$\hat{P}_\phi\rightarrow -i\hbar \frac{\partial}{\partial \phi} $$
as theny follow the canonical commutation rules but on doing these two both leads to different Hamiltonian operators. What's wrong with this reasoning?