I'm going to bet that pilots aren't briefed to hit a school, they get a target package that says this is a legit target, an IRGC command post or something. There are multiple layers of detachment between the person picking coordinates, entering them into a JDAM, and the pilot releasing that weapon so who is ultimately responsible (and this is by design, everyone can tell themselves a story right now to sleep at night.)
But you do know what you hit, in the version of the military that I was in there would have been a detailed investigation into the chain of failures that led to striking a school with children in it. I'm sure it weighs heavily on the every person involved in that decision. Cold comfort for the parents of those kids, but something like that leaves a life long scar on the people responsible.