AI writes code faster than any human, but someone still has to read it, and reading it well requires knowing what the machine does with memory. C++ is the cheapest way to learn that.
Students who understand pointers and complexity debug AI-generated code far faster. That is a career advantage that lasts.