I think the polarizing response regarding AI depends on which lenses you are looking through. For junior roles, yes, the job is rapidly disappearing. But for senior roles, experience and judgment are more important than ever.
So yes, software engineering may no longer be a lifetime career for a lot of people, much like elite sport is not a viable career for most—but still, some will, and must, make it their career.