they are both polynomials with integer coefficients (even though their parent is PolynomialRing(RationalField())) which are of the form a*monic polynomial, with the same value of a. Why isn't this leading coefficient (which is the content) cancelled?