I usually do, because they are usually cleaner.
Though actually using a public restroom is extremely unusual for me. Just to pee is less unusual, though it doesn't happen often.
If I know that I'll be home in a couple hours, and I know I can hold it(which 99.5% of the time I can), I will just wait to go at home.