Lots of good advice here! I’ll just add my personal experience.
We got into hogs by happy accident. I went to pick up some calves, and the owner asked if I’d like a free feeder pig. I had space left in the trailer and said, “Sure, why not!”

I also purchased a second pig from the guy so the freeby wouldn’t get lonely. Those two were a Hampshire x commercial gilt and an Ossabaw x something-or-other barrow. During the next year, I really came to enjoy the pigs and played around with various breeds trying to get a feel for what I wanted to keep around long-term. We also added in a Duroc boar (which I got in trade for some turkey poults) and a Kunekune boar.
Fast forward a few months, and the “big pigs” were eating us out of house and home! Truthfully, I loved those hogs. They had amazing personalities, and I called them my “ugly dogs.” They’d throw themselves at my feet for belly rubs.

But I just couldn’t justify their feed bill nor the damage they were doing everywhere I tried to pen them. (We are a pasture-focused farm, and the pigs were being rotated around the woodlot in order to give them the most natural life possible. The wear and tear they were putting on the place just wasn’t sustainable.) The barrow was always destined for the butcher, but I also made the decision to butcher the gilt, who was really more like a pet at this point and who would have made a good breeding sow. I cried when I dropped them at the processor. We donated the Duroc boar to a local charity that dispatched him at the farm and then hauled him off to process him for food for the hungry in our community.
I kept the Kunekune boar and purchased a cute little Kune gilt to be his mate. These two make a lovely pair, and I don’t see myself getting into “big pigs” ever again. Thorin Porkenshield and Henwen the Pink live in the poultry yard near the house. We go in a visit them every day, and they, too, flop over on their sides to invite a through belly rub. When the ground is soggy, I keep them in the poultry yard— It’s basically a sacrificial area— but when the ground is firm, I let them loose to either forage in the yard or roam our pastures and woodlot. Come evening, they wander back up near the house and wait to be let into their yard for dinner. They also come when called, which is quite handy. And Thorin knows SIT just like a dog. They‘re gentle and don’t bother the other livestock, plus I feel quite safe letting my 7 year old interact with them. When Pinky farrows, I’ll sell as many babies as I can at weaning (honestly, a Kune could go to either the pet market or the feeder market), and I’ll process the rest. A Kunekune is small enough that today’s smaller family might not feel like they’re swimming in pork if they purchase an entire hog + ours are FAR less destructive in the pasture than the bigger pigs were. I recently noticed that Pinky is getting quite round, and I have my fingers crossed for some late-winter babies.
Here’s my $0.02: If you want both pets & pork, give the smaller breeds, such as the Kunekune a try. They’re FAR easier to handle, in my experience. And when it comes time to butcher your current hogs, have a ramp built and ready for loading them into the trailer! I counted on my hogs being tame enough to just hop up into the trailer after a food bucket. It worked for the boy, but the girl was ginormous, and I honestly don’t think she could haul herself into the trailer, although she made a gallant effort. After hours of trying, I ended up fashioning an extremely rickety makeshift ramp and using the upended bucket trick to back her into the trailer. Not an experience I EVER wish to repeat!

Best of luck to you! Enjoy your hogs & enjoy the pork!