Ehh, the two days of 8-10 November where the French resisted the Allies in North Africa was a thing that was very close to not have happened. On the morning of 8th General Bethouart nearly succeeded in preventing the resistance, but with General Nogues not buying the threat being more than a commando raid, that sadly did not happen. If Nogues had flipped to the Allied side, Admiral Esteva in Tunis would have followed with Darlan close behind him. And Nogues was the one who ordered the troops to resists in the first place based on Vichy orders.
Now the Syria campaign where the combined Australian, British, Indian and Free French troops took near 4.3k is a fully different thing, but why they resisted starts to make more sense when you look at the events before. Petain was leading a rump state of France, but still a sovereign state at least for certain extend. They had kept their colonies and foreign holdings instead of Germany outright annexing them. For Petain staying sovereign would ensure the survival of the state (I am oversimplifying really hard here). If Vichy France hadn't tried to defend their lands, there was a clear risk that Germans would have just kicked Petain and friends out and fully started to run the show. Add in Mers-el-Kebir and the whole shitshow, no wonder the French were sceptical and harbored whole lot of bad blood against the British, after all they did bomb Gibraltar couple times as a retaliation. So in that light when the Syria happens year later, they resisted. When Torch happens, they resisted. French soldiers followed their orders until they were told to surrender and switch sides.
But what happens next tells us a lot, Petain died a senile prisoner, Laval was shot, Nogues was sentenced into exile, Esteva was given life imprisonment and was pardoned after becoming terminally ill, Darlan was assassinated and Dentz who commanded the Vichy French troops in Syria/Lebanon was given death sentence originally (he died in 1945). During the war ten thousand collaborators were shot and post-war 800ish were executed from the total of 6.7k given death sentences. When the Second World War ended, the French Army was the fourth largest in Europe after US, Soviets and the Brits with over 1.3 million men in arms of which ten divisions were fighting in Germany. Even earlier back in August, there was 50k French troops of the First Army participating in Operation Dragoon and the First Army had ballooned to quarter million at the end of the war.
If I am going to argue a point, it would be that while the French resisting the Allies is noteworthy and that did cause casualties, the officers and people at charge had legitimate even if in our eyes wrong reasons to resist. And immediately following it most of them paid for it. And the scale of resistance and the casualties caused gets dwarfed by how strongly the French threw their lot behind the Allies post Torch and North Africa after they had gotten their own internal politics in order. I am writing this mostly from memory so there might be couple mistakes here and there, apologies for that.