Which statement best explains how a planet affects the orbital path of a comet as the comet passes by the planet?
A: The speed of the comet creates an area of low pressure as the comet passes by, pulling the planet toward the comet.
B: The magnetic fields of the comet and the planet produce similar charges, pushing the two objects apart as the comet passes by.
C: The planet has a stronger gravitational field than the comet has, and the comet is pulled slightly toward the planet as it passes by.
D: The gravitational field of the planet pulls the comet, which does not have a gravitational field, toward the planet as the comet passes by.