Minecraft wiki entry for Defeating_a_bastion_remnant, associated text: Hoglins can attack from a 3 block tall pillar, but not a 4 block tall pillar. Although you cannot hit them from 4 blocks, you can still shoot them. If you make a 3 block tall pillar, it is possible to kill Hoglins with melee weapon as long as you don't lean too far over the edge.
Piglins will never hunt any hoglins generated in bastion remnants. Don't rely on piglins to kill the hoglins for you.
It is extremely hard for hoglins to get in boats. Instead, take advantage of the fact they can't fit through 1 block wide spaces.
If you must engage in melee combat with a hoglin, use a sword with Knockback II, Sharpness I-V, and Fire Aspect.
It's a good idea to bring some warped fungus to scare away the hoglins.