You have a choice, both of which are OK: Earth’s gravity is greater than that of the moon. (omitting ‘the’ and ‘of’) Gravity on Earth is greater than that on the moon. (because of ‘on’ in both)
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.