The most effective form of censorship is self censorship. Let's not say really bad things about X, because I don't want to burn any bridges. There is a popular image of the US military has little to do with reality. Consider the number of times an active army US soldier is portrayed as raping someone in a movie vs the other guy's army. Or the extremely high unemployment rate rate for soldiers you only serve one tour.
The reason you see a positive portrayal of the US soldier in movies is because a large percentage of the audience either is or if friends with someone who is a soldier. So unless you movie is explicitly about evil US soldiers there is no profit to be had in portraying the US army in a negative light.
Filmmakers don't offend people without gaining something from it. It's not just a question of the military + audience but also producers and actors etc. Also, sound effects people don't bother using actual hoof beats when people are so used to hearing cocoanuts and writers / producers don't challenge perceptions unless that's their direct goal.
PS: The DoD does not try and get people to think that most US soldiers are Captain America wannabes. The goal is closer to: "Well trained, Deadly, Loyal, Young, Americans, that need all the support they can get." For various reasons they would rather be seen as crazy than infective.
You mean like Avatar? Or Redacted? Stop-Loss? Battle For Haditha? Green Zone? Or any of a host of other war movies made by Hollywood in the last 40 years that trash the US military to varying degrees. Go further back in time and you get movies like Casualties of War, Apocalypse Now, etc.
You accuse others of lying in the service of their politics, all the while you engage in that very thing. The term for this is projection.