I think this comes out in the wash mostly.
While we're going to have lots of officers who've been to war for a while yet, turnover eventually evens the playing field.
The people who would be doing the actual fighting in a war today have never been to war.
And as we've seen in Ukraine, warfare is always evolving, making some subset of past war experience less valuable.
The upper ranks of the US military is absolutely littered with guys who served in Iraq and Afghanistan.
Its the difference between having a CEO who was a competent engineer for years before becoming the CEO, and having a CEO who went to business school and played software dev tycoon for 10 years before walking in the door to be CEO on the first day of their first real job.