That was on purpose. Verhoeven allegedly didn't read the book (which I doubt) and set out to create a parody of it. The movie is ridiculous because it is supposed to be ridiculous, mocking the US military as dumb hicks (enlisted AND leadership), its culture and its purpose as "fascist" and pointless, in 1997, at the tail end of a relatively peaceful period with no major conflicts for the US.
I suspect the scene [2] is a reference to the book chapter where a soldier is executed for mutiny, which Heinlein uses to demonstrate why a wartime military has strict discipline and which Verhoeven openly mocks (indeed Zim's speech about why infantry is needed in the nuclear age [1] in the book answers the same question as the movie scene).
I have not watched the new Ghost in the Shell but I doubt the director set out to ridicule the original, so the spirit of your remark still stands.
[1] https://en.wikiquote.org/wiki/Starship_Troopers#Chapter_5