WWI did have moments of extreme stupidity. But the real problem was that, for the first time since castles vs. troops without cannon, defense was stronger than offense. Machine guns, barbed wire, and trenches could resist most attacks. When that wasn't enough, both sides had plenty of railroad capacity and could move reserves around fast enough that no breakthrough got very far. There was much logistic cleverness behind that. It worked well.
When defense is stronger than offense, wars stall. Which is what happened in WWI. Nobody could force a decision. Until tanks and aircraft entered the battlefield.
We have that today. Guerilla warfare can go on for decades. Neither side can force a decision. If the guerilla side gets ahead, they control entire areas, which means they have vulnerable centers that can be attacked. If the other side gets ahead, the guerillas hide in the population until the heat is off. "A guerrilla swims among the people like a fish swims in the sea." - Mao. Neither side can force a decision, although one side may eventually wear down the other over a long period.
Modern militaries realize that their tactical doctrine may not work, but they're also aware that new, proposed doctrine may be worse. There have been societies that couldn't even think about that problem. Many, from the Aztecs to the Zulus, are extinct.