The bug
When bartering with a piglin with an equipped shield by using right click, the shield is deleted instead of being dropped on the ground. However, if you barter by dropping the gold ingot instead of right clicking the shield is dropped to the ground as it should.
To reproduce
Summon a piglin
Give it a shield
Use a gold ingot by right clicking on it
→ ❌ The shield disappears
Relates to MC-181464.