Solving problems is a by-product of the understanding. New techniques are a by-product of the understanding.
But I can understand you're scared that some future version of AI will undermine this as well. I personally pivoted to a field adjacent to mathematics. But that doesn't mean my mathematics education wasn't valuable. To the contrary, I find that it helps me think much more sharply about problems than most of my colleagues.