Firing a bunch of ineffective managers because they can easily be replaced by AI seems like a net improvement to me.
Where are the failed programmers supposed to go then?
Product Management.