Acceleration due to gravity at the surface of a planet, \(g=\frac{G M}{R^2}\)
where \(M\) is the mass of planet,
\(R\) is the radius of the planet,
Also, \(M=p V\)
\(\Rightarrow g=\frac{G}{R^2} \times\left(\frac{4}{3} \pi G R^3 \rho\right)\)
Thus, \(g=\frac{4}{3} \pi G R \rho\)
Thus \(g \alpha\) Radius of the planet,
Thus, acceleration due to gravity would be greater on the larger planet.