Adding to this, I'm fairly certain the only ways in which stabbing a child with a sword could have positive utilitarian value would be if you somehow had proof that afterlives existed and proof that the child was destined for a good one, and would inevitably become destined for a not so good one. That, or it's an extreme overpopulation scenario, or other similar limited resources situation, but even then there are surely other options.
Some would argue that the candy isn't a good option either, unless the child understood the concept of moderation, or it was a reward of some sort, etc. etc. etc.