HOW WEIRD!!! I was just trying to remember this saying! I was thinking in terms of arguing with a stubborn jacka$$, but that is exactly what it came from...
In my head, I had morphed the pig one into "Never argue with a stubborn jackass, you waste your breath and he never moves."