Earlier quoted context omitted.
So comparing a terrible mistake in an active war zone to a purposeful killing of civilians is..what exactly?
The MSF hospital bombing was pretty clearly not a "terrible mistake", but was in fact "purposeful killing of civilians" https://theintercept.com/2015/10/06/why-bombing-kunduz-hospi...
Something can be both a “terrible mistake” and also a violation of international law.
At a high level, it seems unlikely that American military leaders would intend to bomb a hospital, considering the horrible human toll and subsequent political and public relations disaster.
Perhaps the investigation will turn up a more complete story about why the hospital was targeted.