Mostly agree with the previous poster, although to this I would add it all depends upon the circumstances.
For example some journals will accept almost any old toot, some really won't. For example loads of people have passed PhDs but haven't got articles in for example; nature or science (and believe me, lots of people with PhDs have tried to publish with those journals). In reality if you get to viva stage at a uk institution you have a very good chance of passing, in some other countries you have a 100% chance of passing at viva stage (it is literally a formality), and in Australia you often don't even have a viva.
Like many things in Academia, much of it is really not very transparent. One thing I will say is if you have a good paper published come viva day, it's very difficult for them to fail you.
In all i'd say they are very similar, but slightly different challenges, that should be treated as a marathon, not a sprint. If you can do one, you should be able to do the other.