By Claude:
With algebraic : true, divide, quotient, remainder and gcdex can fail with a division error:
(%i1) display2d : false$
(%i2) algebraic : true$
(%i3) f : x-sqrt(z)$
(%i4) d : expand((sqrt(z+1)+z^(3/2)-1)*f)$
(%i5) divide(f, d, x);
PTPTQUOTIENT: Polynomial quotient is not exact
-- an error. To debug this try: debugmode(true);
(%i6) remainder(expand(f*(x+1)), d, x);
PTPTQUOTIENT: Polynomial quotient is not exact
-- an error. To debug this try: debugmode(true);
d is f times a factor free of x, so the quotient is the inverse of that factor and both remainders are 0. Maxima 5.49.0 returns [-((sqrt(z+1)-z^(3/2)+1)/(z^3+(-(2*sqrt(z))-1)*z)),0] and 0. With gcd : subres, 5.49.0 fails in the same way. Since commit 948338e38 ("Fix '$SPMOD GCD for polynomials with algebraic variables") the error occurs with the default gcd : spmod.