Buying a domain name

Domain name

  • mysite.directory

  • mysitedirectory.com

Does domain name play any part in SEO and discovery.
I’m confused between which one to go for.
Both the domains are available but I have the money for only one.