Probably intended. Piglins are attracted to gold items, but they are not attracted to totems of undying, despite being a gold-like item. Seperate issue of MC-172363.
Piglins still not attracted to Totems of Undying and Powered Rails
Piglins aren't attracted to powered rails or totem of undying
Piglins aren't attracted to certain golden items