I imagine a ponyD with the four gun option would be outmaneuver a pony B and the 6 gun D due to better engine and lower weight?
Simple answer - yes, probably - if you meant that a P-51D should outmanuever a B given the suggested armament swap.
By the time the P-51D-5 was assigned to ETO and MTO squadrons in late May/June 1944 all the new P-51B-15NA's and P-51C-10NT's were equipped with the same Packard-Merlin 1650-7 engine. The earlier B's were being retrofitted with the -7 to replace the 1650-3 as they wore out.
The only tangible weight difference between the two was the armament (2x 50 cal plus ~ 600 more rounds of .50cal)and according to Lednicer from his VSAERO studies, the 51D had slightly less windscreen/canopy drag with a greater sloped windshield and the bubble canopy vs birdcage.