Then there is electronic music, which has a very broad definition: it is made by electronic equipment, which is different from traditional musical instruments such as flutes, drums and guzheng, and the synthesized music can be called electronic music.
If you want to distinguish, you can define the two yourself, or refer to what I said above. In fact, the carrier of dance music can be electronic or traditional. Moreover, most electronic sounds have obvious beats, and of course they can also be matched with human voices, and sometimes they can be said to be better matched with classic songs, but the range of dance music (DM) is larger than that of electronic sounds (EM), but the range is different. What theme does a song want to express? They will choose different styles. It all depends on the occasion and the author's idea.