Ah, that's good thinking, even though there is no cancellation in this case.
I'm guessing that your numerator is less than degree three. If so, we could have determined that the numerator is not a factor of the denominator by using longhand polynomial division, to confirm that the remainder is non-zero, after dividing the numerator into the denominator.