Search Engines consider hyphens as keyword separators or space between words. For instance if you are targeting seo-smm, you may get ranked for SEO, SMM and SEO SMM.
On the other hand, search engines consider underscore as nospace.
In my opinion, hyphens is a better option in URLs.