That's not how physics works.
The sun completely dominates all other bodies in the solar system when it comes to gravitational effects on Earth (even the moon has less of an effect than the sun, despite its proximity). The Earth doesn't even notice this comet's existence, gravitationally speaking.