While M is your ticket, manually merging can give you higher valor guys in total. If you try to always merge two or more units so that a tiny number of high valor troops remain, you can retrain that stub. Since now new recruits are at the experience level of avg of the unit, this allows for more elite troops in the long run.