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.
As in, we might do something useful, but we didn't.