Either will do just fine. Contrary to popular belief, hogs are not hard to kill. I've killed quite a few, with a variety of guns. I've used a .22lr, 20ga Tshot, 12ga Tshot, and 5.56/.223. The last few years I've been using my AR's and Ive never had a problem with them. Usually only takes one shot. I usually load a mix of 50gr JHP, and 50gr V-tips. (In Arkansas)
What area are you planning on hunting in? Hunting area makes all the difference.
For hogs in Arkansas, Texas, Louisiana, or Mississippi, the smaller calibers will do fine. The typical hog in these areas will not get over about 300lbs are so, and they usually stay in the 150lb area. Hogs in these areas tend to not be aggressive, except for havelena (spelled that wrong) in south Texas.
Hogs in Florida, Georgia, Alabama, and South Carolina tend to be bigger and more aggressive on average. With the hogs in these areas you may want a caliber with a little more energy than the 5.56/.223.
Hope this info helps.
Disclaimer: this info is based off of my own experiences and research, and is not exclusive. It does not apply to every hunters experiences. Not all states that have hogs are listed, just the ones that are more popular for hog hunting.