I think we need to frame this question in terms of systems, not just roles. Even in this thread, people have different definitions of manager: someone responsible for people, someone who makes decisions, someone who routes info.
So the type of management will be a big factor
Buy before Al replaces "managers," companies will (or should) rethink how their systems and workflows operate, then realign roles to match.
Instead of starting with a question of replacing roles (and some certainly will), it'll start with redefining how work gets done, and updating job descriptions accordingly.
What won't change is that employers will hire for value. So maybe while some companies would rather substitute managers with AI, I imagine many would prefer the outsized value an ai-literate manager might have