Jesus does not mean literally that dead people will bury other dead people. Possible meanings of "the dead" are 1) it is a metaphor for those who will soon die, or 2) it is a metaphor for those who do not follow Jesus and are spiritually dead. The main point is that a disciple must not let anything delay him from following Jesus. (See: [[rc://en/ta/man/translate/figs-metaphor]])