The doomsaying about mathematicians being put out of a job by AI strikes me as analogous to a (hypthetical) assertion that theoretical physicists might be put out of a job by a bigger particle accelerator. ...since the big machine will be so much better at testing $theory, it will lay waste to ideas that don't pan out but are fun for theoretical physicists to speculate about in the absence of physical proof for or against.
Technically true, but also somehow very much missing the point.
Similarly, complaining that mathematicians will be put out of a job by a productivity aid is alsp very much missing the point: imagine what you can now know when you don't have to bang your head against some subtle but deal-breaking logic obstacle that the machine can navigate for you!
As I write this, I realize that I have relatively little understanding of the mechanics of how my computer actually calculates logs or trig functions or all the other good stuff that PhD mathematicians used to spend their time figuring out how to do efficiently. It's all there in the microcode...and in Abramowitz and Stegun for the curious, but you can just type "sqrt" or "exp" or "log" and get the right answer to fifteen decimal digits...so you can actually do the thing you want to do instead of getting hung up on arithmetic.
A buddy of mine was trolling through company archives a while back at work and found some greybeard's laboratory notebook from sixty years ago. Page after page of taylor expansions *by hand* to compute two lines of matlab.
The machine is your friend. It does scut work that stands in the way between you and forward progress.