URL is plays an important role in terms of SEO. If you have given proper URL structure for your website, the chances are high that you may get addition traffic from Google. Although this is not mandatory but having pretty urls can boost your traffic.
By just seeing the first URL, Google can not distinguish about the content of that page but can easily do it for the second URL. Visitors can also get an idea about the content if they are going through second URL.