They are both very serviceable firearms. Bill Ruger back in 1948 started making less expensive handguns to counter the very high end Colt offerings of the day. He used investment castings and metal coatings and music wire springs rather than the more expensive machining processes.
S&W is a 150 year old company that continues to offer revolvers machined from gun steel. These can be offered in conventional blued steel or machined stainless. It simply a matter of casting or machined steel handguns. Firearms of any type machined rather than cast cost more and are more desired as collectors arms.