If $f(x)=g(x)$, then $f'(x)=g'(x)$, is it right?
Assume there is a function $f(x)=m(x)\delta(x)$,where $m(x)$ is any function and $\delta(x)$ is Dirac-δ function. We know that $m(x)\delta(x)=m(0)\delta(x)$, so we have $f(x)=m(0)\delta(x)$.
But why $[m(0)\delta(x)]'\ne[m(x)\delta(x)]'$? $[m(0)\delta(x)]'=m(0)\delta'(x)$, and $[m(x)\delta(x)]'=m'(0)\delta(x)+m(x)\delta'(x)$, and I think it's obviously not equal.