Piglins can pick up items, and will have persistence of 1b, which means they leave mobcap and do not despawn. However, inspecting an item does give them persistence 1b, meaning they do not leave mobcap and they will despawn.
This does not apply to items other items such as swords which the piglin picks up, wherein the persistence is set to 1b.
How to reproduce:
use "/data get entity " on the piglin. It has persistence 0b. Give it gold, and the persistence will be 0b.