Select newest record when there's a duplicate

How to get the newest record from a datatable? For example, I have here a table in which rows A and C matched. I need to get the recent row based on the date so the output must be.

Hello 15 Hey 6/18/2021

A B C D
Hello 10 Hey 6/17/2021
Hello 15 Hey 6/18/2021

The basic idea would to be to sort the resultant datatable based on dates [ by descending] and extract the first row which would had latest data record

looks similar (for the case more rows / groups are to handle)