If the article and data are published around the same time, and the article lists the dataset's DOI, use:
If the article does not include the link to the dataset doi and or it was published before the data or does not mention the data, you might want to use:
both of these will be included as a citation for the data if you use DataCite's API via Dataverse