Has hexosaminidase activity. Responsible for the cleavage of the monosaccharides N-acetylglucosamine (GlcNAc) and N- acetylgalactosamine (GalNAc) from cellular substrates. Has a preference for galactosaminide over glucosaminide substrates (PubMed:27149221). {ECO:0000269|PubMed:19040401, ECO:0000269|PubMed:23099419, ECO:0000269|PubMed:27149221}. This is the function of HEXD (hexosaminidase D, Ensembl gene identifier ENSG00000169660).