Also this is where language unfortunately has to come in because all animals are "highly specialized", even the human diet can be said to be highly specialized in eating a wide variety of food.
Optimally-used specialists supporting each other will beat the jacks of all trades on all fronts.
But, is a team of all specialists superior to a team of specialists with jack of all trades.
A team of specialists breaks apart as soon as they lose a single member, without anyone to pick up the slack in case anything goes wrong. (this is actually why few people in real life super specialize. The key to being good at your field is usually to at least be somewhat knowledgeable about others.)
But sure a team of 5 specialists versus 5 jack of all trades... Surviving in the woods.
The 5 jack of all trades would win every single time. Because Jack of All Trades can pick up their own slack. Sure, they might not be able to catch 5 fish like the specialist can... but they can each catch three. They might not be able to pitch three tents like the specialist can... But they can pitch one.
This is actually why specialists in our society can only exist with a strong support structure. Why General stores existed before specialty stores. Why Blacksmiths might need to know how to make everything.
Specialists need more then specialists supporting them. A Sniper needs a spotter, needs a commander, a operations expert, a field of soldiers, someone who made their gun, made their food, created their clothes... A generalist is self-sufficient.
In a fight of self-sufficiency... Jack-of-all-trades wins.