I’ve found .22 long rifle, any brand, works well. The hollow point flavor preferred.
When I lived at the edge of the city years ago, I took care of the racoon problem with a little .22, with a soda bottle over the barrel so the noise wasn’t so loud in the kitchen. The neighbors are way too close, now, and I suspect would call the cops if they even suspected I owned a rifle.
I tried a small animal trap but only caught squirrels. They aren’t bad eating if you get enough of them. Ground hog is just plain delicious!!