This is a poor analogy. Magnus Carlsen stays because chess consumers decide to pay for humans even though they are inferior to Stockfish. BigCorp will always pick machine over you if they can.
Companies automate the parts that are commodity. On messy product work (drifting specs, integration, liability), human + AI + good process > AI alone. The machine proposes; the human sets goals, constrains risk, writes/reads tests. That combo ships faster and with fewer costly mistakes than letting an ai free-run.
Programmers have significantly higher unemployment than the general workforce today, but it’s hitting a wide swath of white collar jobs and that’s not going away. The industrial revolution replaced manual labor, so people moved to more mentally challenging jobs but AI can eventually replace anybody from CEO’s on down.