$Q1$: $\frac{2x-7}{x^2-7x+12} = \frac{2x-7}{x^2-7x+10}$
I was taught that when the values of the fractions of two sides are equal and when numerator of the two sides are equal, but denominators are unequal, then the value of the numerator is zero.
So, $2x-7 = 0$
Or, $x=\frac{7}{2}$
$Q2$: $x-4=\frac{x-4}{x}$
If we apply the above-mentioned knowledge in this equation, we get
$x=4$
and at the same time, we miss the solution for $x=1$
Again, I was also taught that if $\frac{a}{b}=\frac{a}{c}$, then $b=c$.
According to this, we get the solution
$x=1$, but we miss $x=4$
Could someone please tell me what am I missing here?