Why stop at HR, the whole c-suite is a massive cost center and ripe for disruption.
I've been priveledged enough to see the insides of hundreds of companies. The problem is ALWAYS the leadership! (or lack thereof)
The rest is implementation details.
Realistically, C-suite probably will probably target engineers first before letting themselves get replaced by AI. It may be fractionally partially responsible for the current layoff.