> Would it be an affirmative defense if we had a defendant who said [...]
I think you just recapitulated the plot of Ender's Game.
Also a subplot in Arrested Development and the movie Toys.