First example: Yes. I'd feel horrible about it, and be burdened for life, but it's arithmatic. Better for the community to lose one, than lose 100s.
Second example: Only if I knew beyond a shadow of a doubt they were destined to die, and only if I knew that they would go to heaven. Otherwise, no.