You can’t keep the enemy at rifle range forever. Once the enemy is up close it doesn’t matter what firearm they carry. We are probably lucky that the AK became so ubiquitous or we would have a much higher death toll.
There was a poster here years ago who served in Sinai Desert with 101st. ABN DIV. Peacekeeping force. He worked with the regular Egyptian Army. He said their weapons maintenance was non-existent. I suspect their training as well was poor.
There are better weapons, there are worse weapons. If not maintained properly, no weapon is good. They all require it. Wish they didn't. Spent many, many hours cleaning weapons after hunting, shooting, and work.