I think "caught in an inescapable trap" is somewhat more satisfying in a D&D narrative than "unwinnable fight" if you must have this sort of setup. Especially because the characters likely will fight and defeat the "unbeatable" foes at some point.
We're ultimately talking about a form of railroading, which is usually a necessary evil in any D&D campaign to some extent. The key is getting buy-in from the players that the railroad trip will be a fun one, so they're not constantly scheming to derail the train.