It depends what role(s) you anticipate using the gun for.
One is very versatile in power, the other very versatile in roles.
The .357 can go from .38 blank, to wax bullet, to shotshell, to 148 wadcutter, to +P .38, to .357 loads that'll shake out the fillings in your teeth....all in the same cylinder!
But does that matter to you ?
The revolver is harder to shoot well, is harder to carry concealed and kicks more (with the defense loads) and is harder/slower to reload.
But it does depend what specific S&W it is. That could make all the difference between value, if not usefulness.
A Glock is versatile in the roles it can fulfill: defense, concealment, competition, etc.
The revolver works for defense, but not as readily. But it also works for hunting, if that matters and if your state allows it. (again, depending on the specific model.)
We need more info !