Piglins are hostile towards Wither Skeletons and therefore should always attack them. However, Piglins only attack Wither Skeletons when they are in a group of at least two.
Piglins and Wither Skeletons don't attack each other sometimes
Piglins Don't attack alone
Wither skeletons don't automaticly attack piglins