Here's why:
* "First or second" acts as a parenthetical phrase that provides additional information about the impact being compared.
* Parenthetical phrases are typically set off by commas.
Therefore, the complete sentence is: "Which impact was harder, first or second?"