Lee was great until Jackson and Stuart were killed (by own men). Lee only had to give them the objective and they figured out how to accomplish. Their “replacements” expected Lee to give them specifics of how to do it and didn’t understand Lee. That’s what cost him Gettysburg.
Against great odds, Washington won. Lee lost.
He is one of the “greats”, but I’d put both Washington and McArthur’s Inchon brilliance above him.
Also, in the same range as Lee, I’d put Patton and Sherman. Patton understood the German blitzkrieg and adjusted his mechanized forces. Sherman understood that he had to be brutal or the war would go on forever.