The two DA .22 revolvers you mentioned: S&W 617 or 317, are very fine choices!
About 10-12 years ago I was shopping for basically the same thing, I ended up buying a NIB stainless S&W J-frame model 63 w/a 4" brl & adj. sites. - they made the same gun in a blued version, if you can find one their worth the money.
That said, if I were to choose between the 617 or 317, for your intended purposes I would pick the 317. It will be so light & small to carry you won't hardly notice it, till you want it or need it. Also suggest you try at least 6 - 8 different types of ammo through it and find the one it really likes, one that I now try in all my .22 is the Winchester Power Points it seems to be accurate in most everything I try it in. My lil' 63 had a real preference for Winchester 42 grn Silhouette ammo, shooting groups about 1/2 the size of most everything else.