We talk a lot about how HR is not our friend. This is how I look at it.
The CEO is the mob boss. HR is their enforcer. They work for the mob boss, not you. If the mob boss is mad at you, they send HR to break your legs.
So, HR is not only not your friend, they might be your enemy.