In Tolstoy's War and Peace the entire officer corps seems based on nepotism, not military skill. Was this the case in Napoleonic era armies?

by BaffledPlato
ForExes

It doesn't completely answer your question, but /u/DonaldFDraper gave a great write up comparing Austria and France's military structure during the Napoleonic era here in this post