They are the same. Up untill 1957 the K frame 22 Masterpiece was known as the K22. In 1957 S&W gave their guns model numbers and it became the Model 17. The dash numbers following the 17 (17-1, 17-2, etc) are engineering changes made to the guns thru the years.
Many folks will pay a premium for the earlier guns because they believe they are better made.
Buy the one that appears to be in better condition (finish, lock up, etc). If condition is equal then I would go for the earlier gun.
Jim