Nothing fancy or expensive needed to finish off a hog with from my experiences at dumpin hogs. Put a 115gr FMJ thru the head at close range = dead hog simply put.
I have used a Glock19 for that purpose, but simply prefer how my XD feels in my hand while shooting it.
Have also used my Ruger GP100 using my reloaded 38spl "economy" wadcutters for the same purpose.....as well as a few different types of sidearms chambered in 22lr.
Nothing wrong with hunting hogs with a Ruger M77 compact if that is what you like.
I prefer rifles with factory iron sights...regardless of if I'm planning to use optics with a particular rifle.
Something else you might be interested in is the Savage Hog hunter rifle.
You can get one chambered in 223, it sports iron sights, has a threaded bbl, and costs less than the M77.
The synthetic stocks are butt ugly, but then again, this rifle is made to be used instead of hung on a wall, and not just for stand hunting, but as a truck/ATV gun, as well as a brush hunting rifle.
I would also suggest a larger caliber since you described your hunting area as well as the distances involved. 243, 260, 7mm08, or 308 would be good choices for your hog hunting area, and keep the rifle in a short action too boot.