This is whataboutism. Obviously the war in Iraq was a terrible mistake and tragedy, but that doesn't give anyone carte blanche to do equally terrible things.
the word should get you warned to stop dismissing valid comparisons.
ironically, whataboutism was an intentionally misapplied fallacy popularized by the russians.