No, there is no "once and for all". If you choose to.open your heart and your home and your life with a little non human creature, there's no "best" one.
That having been said,
I've never had a dog pee up against walls, curtains, chairs, couches, boxes, shoes, purses, coats (etc) ... So I'd have to say dogs are better when it comes to that.
And yes, my cat is fixed and yes he's under vet care and yes I've done everything to 'lessen his stressors' and yes he still pees on everything.