answered 0 years ago
A workaround is to define the second ring as multivariate, that is, PolynomialRing(QQ, 1, 'y') instead of PolynomialRing(QQ, 'y').
PolynomialRing(QQ, 1, 'y')
PolynomialRing(QQ, 'y')