Animorphs
Animorphs.
Cool friends fighting aliens...more accurately, the pariah of a fascist civilization, minutes before being eaten alive in front of said "ccol friends" persuades and then bioengineers human child soldiers to facilitate an end to an ill-conceived and failing war now reduced to unilaterally exterminating a parasitic, physically disabled species, itself undergoing a violent civil rights movement on their own planet based on their self-recognized flaws, struggling to realize its place in a universe where godlike beings exist and decide not to offer remedy(rules of the god game) and spectate while the parasites overwhelm all vulnerable species in the known universe.
The child soldiers agree to resist the parasites, but at least a minority of them believe genocide is the wrong answer. After being physically and emotionally tortured, shot, repeatedly disemboweled and having their limbs hacked or bitten off by hosts of the parasitic species, however, all of the child soldiers begin taking violent, morally devastating actions that end their lives as they know them.
Use spoiler tags as necessary! There are always new readers discovering this series.
spoiler
Like this!
view the rest of the comments
Well that goes without saying:-), still I would hope there could be found a less painful approach...