Among other things, I’m a licensed vet specializing in food animals. I’ve dispatched a lot of livestock and wild animals.
Except for the very young, wild hogs are powerful, dangerous animals and trying to confine them for conventional euthanasia (captive bolt, gas, electrocution, injection, etc.) is dangerous for the operator and the hogs. Confinement of any kind is very upsetting to these wild animals. And proper confinement equipment is expensive. Some of the euthanasia methods listed above are actually considered stunning, not killing. Exsanguination or bilateral pneumothorax are required to finish the job.
Once the hogs are confined in any way, even a large corral or trap, they are going to be upset. Most humane thing is to kill them ASAP without further handling. If at all feasible, a high-power rifle (not a 22LR or .177!) should be used by an experienced marksman. Keep in mind when handling wild hogs, dead or alive, they can carry diseases or ectoparasites transmissible to humans or other animals, especially livestock. Take appropriate precautions. Follow local rules and laws in all processes from trapping to carcass disposal.
Mike