Of course. Auto-vectorization isn't magic, for one. In any video codec, the hot kernels will all be in hand-written assembly.
Now I'm not saying AI can't write ASM. I'm saying that compilers have a hard job. They output bad assembly, because the task is difficult.
I find it hard to believe that the output of modern compilers is objectively 'bad assembly'.