Hmm I guess that makes sense but there are two options I see:
1) The comet hits Mars, has negative effects on the planet but we end up learning a lot about what happened to Earth.
2) We deflect the comet, learn how to protect ourselves from such things in the future, and we can still visit Mars in the future and hope for life on there.
Now obviously I demonstrated a bias above, but I definitely think it's more worth our time to look into the future than what happenED--especially in this situation. Right now, there are more discussions/plans of humans visiting Mars than there ever has been. A comet hitting the planet would most likely cancel or severely postpone many of those plans.
Learning how to protect ourselves should be prioritized, then discovery should be close after. Both of these may become delayed processes if we just allow a comet to hit Mars. Let me know your thoughts.