The thing is, if you get cornered by multiple piglin brutes/piglins with swords, it is very hard to survive (brutes can disable a shield). I found a treasure bastion in a warped forest, and I kept leading the piglins out of the bastion and into the open where I could kill them easily. Just seek and make use of open space essentially.