As mentioned, they're both 'better' in different ways.
One thing to keep an eye on, and possibly read up on...
The S&W 29s/629s have gone through several modifications over the years, and some versions are considered to be better than others.
A 29-2 or 29-4, for example, is generally considered to be better-built and likely to have a longer lifespan than a 29-3 that came between them. (Though the reality of reduced longevity is a hotly debated topic.)
The same goes for the 629s. A 629 up through 629-2 is generally considered to be more prone to wear/failure (but more 'collectible'

) than the 629-3 to 629-5.
Personally...
If I wanted a better factory DA pull, I'd lean more toward S&W.
If I wanted more weight to help with recoil, I'd lean toward Ruger.
All else being equal, most Ruger revolvers fit my hands better than the competing S&W product, so Ruger starts with an edge, anyway.
I currently own only one S&W, a 29-3 (the 'weak' M29

); and I have never owned more than two S&Ws at the same time. Generally, they just don't work for me.
I own
many Rugers and like every one of them.