Answer: the moon is closer.
Step-by-step explanation:
The moon is closer to the earth than the sun, which results in a larger gravitational gradient for the moon even though the sun is considerably more massive and has stronger overall gravity than the moon.