If AI decides quantum computers are useful, it will build them anyway.
Of course, it’s possible that an agent with an intellect sufficiently sophisticated might see through what we don’t, and figure out ways to transpose every classical operation into a quantum equivalent that guarantees a huge speed up.
Besides this, the main other famous example is Grover search, which sorts an unsorted list of length n in O(sqrt{n}) time. The issue is that it is parallelizes very poorly, to the point of not being particularly threatening for things like attacking AES128. See
https://words.filippo.io/128-bits/
for some more details.