I guess the concept of doing the right thing even though your odds of success are bad is an alien concept to you?
Lee fought for his state and the coalition of which it was a part without regard for his disagreement with their decision to leave. In those days, your "state" was very much like your country, and you might just as well criticize the Poles for fighting against the Nazi war machine. Their odds were poor too, and the effort was ultimately futile.
The South lost the war the moment it made up it’s mind to start it. For every one cannon foundry the South had, the North had ten. The South’s railway system was a hodgepodge of different gage tracks which meant freight trains had to be stopped and cumbersomely unloaded and reload back on to different trains, the North had a single gage railway system. The South had no navy to speak of. One of the first things the very powerful Union Navy did was blockade Southern ports. Lee should have realized after Vicksburg fell the game was over but as I said he led the slaughter for another two years. The idea of interjecting Nazis vs Poles is ridiculous. Poland’s Army put up a valiant defense at first but it was not the modern army Germanys was. It also didn’t help that three weeks after the Nazis invaded the Russians invaded. Polish resistance was a constant thorn in Germany’s side but Nazi Germany was eventually defeated by a coalition of Allied nations.