You've made two good points. I would suggest the next step is to synthesize them. As with many things, moderation is important. A strategy that balances the two downsides is probably better.
Odds are that each group has a bit of dead wood so taking some from each group would be best - identifying that is the harder part for those several rungs higher
But firing the 10 older engineers, you may be killing the present. Even with no bias, it's not easy to know what the right answer is.