Machine learning isn’t going anywhere.
As someone who despises the current slop hype with a passion, you're correct on this. But only when you exclude LLMs. Because they are garbage with a net negative for mankind. Machine learning as a field however has very useful applications. Typically such that complement human assessment of data, e.g. re-viewing radiology images to flag potentially anomalous images for a second doctor to look at - not in place of the first doctor.