Take
$$x^2+-3x+2=0$$
This has solutions $x=1$ and $x=2$.
However, I can do anything I want to both sides of an equation and yield a new valid equation as long as I do the same thing to both sides, right?
So $$ \frac{\mathrm{d}}{\mathrm{d}x} (x^2-3x+2) = \frac{\mathrm{d}}{\mathrm{d}x} 0 $$
$$ 2x - 3 = 0 $$
$$ x = \frac{3}{2} $$
Why is this not a valid method of solving polynomials?
The rule "you can do anything you like to both sides of an equation" should be clarified here: you can apply any function you like to both sides of an equation (though even this has some limitations, which I will get to in a moment). For example, if you know that $2x = y + 4$, you could, say, perform the function $f(x) = x - 4$ to both sides, and get $2x - 4 = y$. Or you could apply the function $g(x) = x/2$ to both sides to get $x = \frac{y + 4}{2}$. Or even, I could square both sides, to obtain the true statement $4x^2 = (y + 4)^2$. These are all permissible.
While this is not strictly on point, there are some limitations to this.
So, my point is, without some common sense, you can gain or lose solutions. But as I said, this is not strictly on point.
Now, differentiation is not a function. Well, actually, it is a function, but it's not a real function, i.e. a function that takes real numbers and spits out real numbers. It's a function that acts on functions! It's a rule for taking certain real functions (differentiable functions), and producing other real functions.
It can't act on real numbers. If I ask you, say, for the derivative of $11$, the best you can do is interpret $11$ as the constant map that maps every real number to $11$, and give me the answer $0$ (which, again, is a constant map, not a real number).
When you see the equation $x^2 - 3x + 2 = 0$, this is an equation of real numbers. Yes, the left hand side and right hand side can be viewed as functions, but it's not an equality of functions. The left hand side is a different function to the right hand side. We are looking for the few points $x \in \Bbb{R}$ where the function values of these two wildly different functions happen to coincide.
Taking the derivative of both sides yields nothing of interest, because we didn't have equality of functions in the first place.