Domain name is not a ranking factor.
Google does not give too much credit to domain names including search terms, Google algorithm handles it.
Having search terms in a domain name can help branding.
Source:
https://developers.google.com/search/docs/appearance/ranking-systems-guide#exact-match