English Grammar & Usage

Answer & solution
Official answer: Marks to All
Our answer: A or B (usage-dependent)
The missing relative pronoun is the subject of was hurt, so whom is unsuitable. That naturally introduces the defining clause identifying which dog; which can also introduce a defining relative clause referring to an animal, particularly in British usage. Who may be used for an individually regarded pet in some contexts. The item therefore need not have a uniquely grammatical choice. The official scoring entry is Marks to All; this language analysis is independent and is not an official explanation of that decision.
Check: To test case, replace the relative clause by “the dog was hurt”: the missing pronoun stands where a subject would stand, not where an object would stand. That eliminates whom but does not uniquely separate that and which.