I feel sad and even a bit forlorn when I think of jobs that provide purpose, meaning, motivation, and satisfaction (not to mention $$) to human beings being lost to servers in racks and soulless machines. I think many people feel similarly.
However, I do believe that when a couple problems get solved that massively benefit all of humanity — e.g. a massive cancer breakthrough, etc — a tipping point will be reached and public opinion will reverse and enthusiastically embrace AI, and will accept not only diminished personal meaning but outright technocratic rule. This would be a huge mistake, but I really believe it would happen.
And as we know, solving interesting math problems is a leading indicator of big practical results to come.