When I summoned an iron golem with the attribute "generic.attack_knockback", it still dealt the same knockback.
To Reproduce:
/summon iron_golem ~ ~ ~ {Attributes:[{Name:"generic.attack_knockback",Base:10}]}
Spawn a hostile mob.
Notice the lack of change in the iron golem's knockback distance.
See the comment in MC-180199