Pergunta de entrevista da empresa Digtinctive

Which would be optimal, DISTINCT or GROUP BY to fetch the unique values in SQL?