This is why chess programs usually say “mate in 24” but humans would more likely just be looking a few moves ahead to get in a ‘winning position’ which they know is an eventual checkmate.
I’m not good at chess, and don’t calculate more than 5 moves ahead, but have ‘spotted’ a mate 20 moves ahead just because you recognise that a certain position is winning even if you don’t know every single possible move and response.