You're smoking serious rope that Lee took anywhere near the number of POWs that Grant did during The Overland Campaign. You keep saying Grant had more casualties which is silly given that Grant had to fight at heavily-fortified sites of Lee's choosing (i.e., Grant's Army was forced to charge into Lee's Army who was fighting from behind fortifications. At North Anna River the Union had to fight their way across a River before they could even assault Lee's inverted-V shape barricade which was well back from the flood plain meaning Grant's Army had to charge across open ground - ditto Cold Harbor). After each of these frontal-assaults by the Union who was at the "disadvantage", contrary to your claim, as they were attacking fortified, entrenched Confederate positions not shooting from BEHIND THE PROTECTION of these fortifications and entrenchments - ditto The Wilderness and Spotsylvania - Lee counter-attacked the exhausted Union forces after their Frontal-Assaults failed AND ON EVERY OCCASION, Lee's forces were stopped cold causing them to "fall-back" further South where they could regroup to avoid having to face another Union frontal-assault while they were retreating. On each of these occasions, Grant flanked Lee's Army to the Southeast forcing Lee to scramble South and placing Grant ever closer to Richmond. Your fantasy that Lee inflicted more casualties because he was some brilliant General is nonsense - he had less casualties because his men were fighting from behind bulwarks, fortifications and trenches while the Union Army had only two choices - either try to break their defensive line by assault OR don't fight. Had they choose the later, they never would have been able to flank Lee to the SE (i.e., pin him down to the west) as Lee's fresh Army would have decimated them with an assault while they were unprotected and on the move.
BTW genius, Lee's Armies suffered ~28,000 casualties at Petersburg (the Siege lasted 9 months 6/15/1864 - 4/2/1865). After the fall of Petersburg and Richmond on April 2, 1865, Lee suffered 25,000 surrendered via desertion! 3 days later at the Battle of Sailor's Creek, Lee's Army suffered heavy casualties (several thousand) and another 8,000 prisoners of war including 8 of Lee's Generals! Lee then surrendered with just over 28,000 men. Those numbers clearly indicate that Lee had more than 60,000 combined Armies at Petersburg and Richmond (Lee had his own men, the Army of Northern Virginia, as well as Beauregards Army, the Army of Southern Virginia and all of the Richmond Garrison forces that had been stationed at Richmond the entire war to protect the Capital of the Confederacy). Lee's Army was barely functional at the end as half his men and all top field-commanders had been taken prisoner. Just laughable to claim that Lee took anywhere remotely close to the number of POWs that Grant did during The Overland Campaign. Don't believe me? Read the facts as to the condition of Lee's Army prior to his surrender:
https://www.battlefields.org/learn/articles/10-facts-sailors-creek