As far as geenrals go neither Generals would make the top 10 worlds best generals if you look at it pragmatically and do extensive research but of the two I would favor Ceasar since he lost way less wars then Napoleon just because he was brave and a gambler probably also a miscalculator doesn't make him the better general. He was obviously more war happy compared to Ceasar who was the more calculated guy of the two.
Let me give you a top 10 based on extensive research
1. Khalid Banu Walid: Defeated both the Romans and Persian empire at the same time with a ragtag arab army and probably one of the people responible for the vast expansion of Islam.
2. Subatai: Great general and responsible for the great mongol expansion and the brain behind the operations.
3. Baybars: incredible skilled general who never lost a battle during his time and is the man who completely defeated and stopped the crusaders once and for all to such an extend they lost appetite. He also fought in one of the biggest battles in history at the battle of Ain Jalut II. The first time the Mongols were defeated and stop advancing and he played key role in pushing their advances back in several other campaign post Ain-Jalut and he was victorious against them and you can say he was the guy who basically stopped the mongols.
4. Tariq ibn Ziyad: Took all of spain, Portugal and southern part of France in only 7 years didn't lose one single battle. He first crossed over from Morocco with only 7000 forces and took almost half of Spain without reforcement and when reforcement came he advanced forward taking Portugal and south france.
5. Mehmet II: They call him father of conquests: Took Constantinople and alot of other countries such as Romania, Serbia, Albania, Slovenia, Macedonia, Hungary, Austria, Croatia, Moldova, Bulgaria, Georgia, etc etc and many more.
6. El Cid: Was a Spainard reconquista general who caused the Al-Andalus muslims a nightmare by going undefeated against them in numerous battles and probably their worst nightmare. He took back from them vast territories defeating them in multiple battles. He was stoppable and one of the greatest military minds in his era.
7. Alexander The great: He ran thru alot of armies Europe to Asia minor until he was stop in modern day Pakistan or Kashmir. He was eventually defeated which puts him 7 on this list but his campaigns were legendary and he conquered good amount of land.
8: Sun Tzu: Without this man in the top 10 it is never a top 10. He overcame a large forces while he was writing the famous book called the art of war and he defines top General I would have placed him 1st but unfortunately he didn't have major campaigns outside of China.
9: Malik Kafur: This one will surprise you but his a brillant and underrated general in the Islamic world. He was a Marathi who converted to Islam he ran thru India all the way to Tamil Nadu crushing many larger armies in just 3 years Yadavas (1308), the Kakatiyas (1310), the Hoysalas (1311), and the Pandyas (1311) he basically ran over them at one go that is 4 kingdoms and defeated the mongols (1306) to such an extent they lost appetite for another adventure. He was gifted and probably had ridiculously high IQ. They called him 1000 gold coins and valued for his intelligence. He even ruled Delhi Sultanate for a short period. Nor Delhi sultanate, Mughal Empire, or the deccan sultanate ever saw a greater general everyone who came before him or after him were lesser then him.
10: Genghis Khan: I know that he later on let Subatai and others go on campaign but the way he beat his rival adopted brother who had a larger army showchased his abilities he was a great general and the way he sacked the northern Chinese kingdoms
Honorable mentions who didn't make top 10: TimurLane, Ceasar, King David of Israel, Sulaiman the Great, Scipio Africanus, Pompey, Richard the Lionheart, Saladin, and Kublai Khan