Catalyzes the oxidation of D-2-hydroxyglutarate (D-2-HG) to alpha-ketoglutarate (PubMed:15070399, PubMed:15609246, PubMed:16037974, PubMed:20020533, PubMed:33431826). Also catalyzes the oxidation of other D-2-hydroxyacids, such as D-malate (D-MAL) and D-lactate (D-LAC) (PubMed:33431826). Exhibits high activities towards D-2-HG and D-MAL but a very weak activity towards D-LAC (PubMed:33431826). {ECO:0000269|PubMed:15070399, ECO:0000269|PubMed:15609246, ECO:0000269|PubMed:16037974, ECO:0000269|PubMed:20020533, ECO:0000269|PubMed:33431826}. This is the function of Ensembl gene identifier ENSG00000180902 (D2HGDH, D-2-hydroxyglutarate dehydrogenase).