By Claude:
With algebraic : true, the result of gcd without a main variable depends on the names of the variables. It can miss a common factor, and it can return a polynomial that divides neither argument:
(%i1) display2d : false$
(%i2) algebraic : true$
(%i3) gcd(x^2-c, x-sqrt(c));
(%o3) x-sqrt(c)
(%i4) gcd(x^2-z, x-sqrt(z));
(%o4) 1
(%i5) e1 : (-z-y+w)*sqrt(z^2+w)-z^2+(y+w)*z+2*y^2+2*w*y-w$
(%i6) e2 : (z+3*y+3*w)*sqrt(z^2+w)+z^2+(y+3*w)*z+2*y^2+6*w*y+w$
(%i7) gcd(e1, e2);
(%o7) 1
(%i8) gcd(e1, e2, y);
(%o8) sqrt(z^2+w)+z+2*y
(%i9) gcd(rat(e1), rat(e2));
(%o9) 1
(%i10) p : z-x*sqrt(z)-x^2$
(%i11) q : expand(p*(sqrt(z+1)*x-1))$
(%i12) g : gcd(p, q);
(%o12) sqrt(z)*(x*sqrt(z+1)-x^2)+x^2*sqrt(z+1)
+z*(-sqrt(z+1)-x^2*sqrt(z)-x^3+x)+x*z^2-x^3
(%i13) remainder(p, g, x);
(%o13) z-x*sqrt(z)-x^2
(%i14) gcd(q, p);
(%o14) z-x*sqrt(z)-x^2
x-sqrt(z) divides x^2-z, so (%o4) should be x-sqrt(z), as (%o3) is for c. e1 and e2 are multiples of sqrt(z^2+w)+z+2*y, which gcd only finds with y as the main variable. q is a multiple of p, so (%o12) should be p up to sign, as (%o14) is, but it is of degree 3 in x and does not divide p.
In these cases gcd takes z or sqrt(z^2+w) as the main variable, which is algebraic or occurs under a radical. With gcd : subres, Maxima 5.49.0 gives the same results. With the default gcd : spmod, (%o12) is wrong since commit 948338e38 ("Fix '$SPMOD GCD for polynomials with algebraic variables"). 5.49.0 returned z-x*sqrt(z)-x^2 for gcd(p, q) and gcd(q, p), and 1 for the other gcds above.