Earlier quoted context omitted.
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...
Your summary is not commensurate with the story you linked. 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…
while I'm not 100% sure about that (it seems unthinkable for a human being, but people's judgement can get pretty out of whack in wrong environment), let's assume for the sake of argument that your military leaders are sane.
even then, all it requires is the bare minimum of military leader people closing their eyes for just long enough.
and if you believe they wouldn't do that intentionally, then we'll disagree about that. you don't get that position without the ability to look the other way with laser-sharp focus. it's part of the job (and it's disgusting).
but they would say "you don't know what it's like". meditate on that for a bit. this world, huh?