Pigs aren’t really that hard to kill with well-placed shots. I think any .223 or 5.56 cartridge rifle would get the job done if you’re keeping shots inside of 75 yards or so. When I kill pigs to butcher I use a .22 short right between the peekers and an inch high. One shot. DOA. So you don’t need a ton of fire power but you do need to put shots where they count. With any gun, even with hollow points, I would refrain from shots to the chest unless the critter was standing stark still and there is plenty of clear room for it to run so you don’t lose it.
The wild variety of pigs have a n enormous amount of staima if they are not dropped on the spot or near to it and is why I suggest head shots.
Find an anatomical schematic of a pig and learn where the cranical cavity runs inside the head and learn to put shots wherever the brain is. Knowing where the heart lies is also important as its a bit different than a deer. A heart shot will get at least one lung if not both, but a pig can still go 100 yards in a blink even with a great heart shot.
Its not so much gun caliber as it is bullet placement.