Only factors cancel — never terms.
When you see a fraction like $\dfrac{x^2 - 9}{x^2 - 3x}$, it's tempting to "cancel" the $x^2$ from the top and bottom. But that's illegal — you can only cancel factors, not individual terms inside a sum.
The first step is always the same: factor the numerator and denominator completely, then see what's actually shared.