The first time I was impressed by AI coding was when I pointed it at some switch case monster code and told it to replace it with a strategy pattern.

And it did just fine.

So no matter what you think about vibe coding, using AI for these slightly more complicated use cases is genuinely useful.