.223 gives you the option of 35-75 gr bullets with hundreds of choices in between. You can easily pick the best bullet for your needs.
.22 hornet is much more limited in bullet choices and most of then are light varmint bullets.
Now if you had said you only wanted a rifle to stick out the window of your house, shots no more than 100 yards on hogs and wanted to keep the noise down so you don't annoy quite as many neighbors, then I'd say get a .223 with a suppressor.
"If your plan is for one year, plant rice.
If your plan is for ten years, plant trees.
If your plan is for one hundred years, educate children."