It's just so strange any other profession have unions or bodies that protect their job against this sort of practice.
if software devs were lawyers then AI would've been banned
If the company tries to layoff 10% "due to AI" the remaining 90% can strike.
History is full of union solidarity vs idiotic management.