$x^2-5x+6=0\quad$ is not the equation of the parabola.
The equation of the parabola is $\quad x^2-5x+6=y(x)$
$(x-3)(x-2)=0\quad$ is not the equation of two straight lines.
The equations of the two straight lines is $\quad x-3=y(x)\quad\text{and}\quad x-6=y(x)\quad$ or :
$$(x-2-y)(x-3-y)=0$$
Do not confuse the "equation" of a curve with the "equation" to be solved for an unknown $x$.
The meaning of the word "equation" isn't the same. In the first case, it means a relationship between two variables $y$ and $x$. In the second case, it means an equality not for any values of $x$, but only for some particular values of $x$. Then, solving for $x$ means finding those particular values.
In addition :
In the very different case $\quad x^2-4xy-y^2=0\quad$ there is $y$ in the equation. This is a relationship between $y$ and $x$. So, it is valid for various values of $x$ and the related values of $y$. This allows to draw a curve
$$y(x)=(2\pm \sqrt{5})\:x$$
So, two straight lines : $\quad y(x)=(2+ \sqrt{5})\:x \quad$ and $\quad y(x)=(2- \sqrt{5})\:x$
Further addition :
$x^2-5x+6=0\quad$ is commonly understood as to be solve for $x$, that is, to find the roots of the equation. The answer is two constant values : $x=2$ and $x=3$.
If one want to make understand that the question is not to find the roots of the equation on the common sens, but is to find some unknown relationship between $x$ and $y$ satisfying $x^2-5x+6=0$ , in order to avoid the ambiguity, the equation should be written as :
$$\left( x(y)\right)^2-5x(y)+6=0$$
because, this specifies that $y$ exists and that the equation have to be solved for a function $x(y)$.
Solving it leads to
$$x(y)-2=0 \quad\to\quad x(y)=2$$
$$x(y)-3=0 \quad\to\quad x(y)=3$$
that is two lines parallel to the y-axis.