The 'cold calculus' is neither right or wrong. It just is. In this particular case, it is the objective value of whether the future evil prevented by the destruction of the evil black dragons outweighs the evil of having heedlessly killed innocents with the same spell.
The matter is whether or not one makes decisions based off of it.