While they won’t do it alone, and the NGSW likely isn’t the best tool to do it, there will eventually be infantry slugging it out somewhere. I do agree that Ukraine has shown the ubiquity of helmets and plates does not make 5.56, 5.45 or 5.8 platforms invalid.. In fact, one could argue that they make fire superiority via volume more relevant rather than less.
Pronouncements of pushbutton warfare making infantry combat obsolete sound just like the arguments for not putting guns on US fighters in the late 50s and early 60s. We learned the hard way that was a fallacy in the skies over Vietnam.