In real life there are two tangible benefits to the D, one to the B.
The D has better firepower, with guns that didn't frequently jam, and the D has better visibility.
The slight negative for the D is that the weight of the guns and extra ammo is about 370 pounds more than the B. So, for same Hp and boost at each altitude (which if late model B/C vs D is the same since they both had the 1650-7) the 51B will turn and climb very slightly better.
IIRC this group uses the P-51B with 1650-3 high altitude version of the Merlin which later morphed into the 1650-9 for the P-51H with the Bendix carburation and WI.
So, in this scenario the P-51B is faster above the Critical Altitude of the 1650-7 meaning above 24K.
On another forum I got entangled in this debate and went to both analytical models like Lednicer and exchanged emails with the guys that flew both in combat to add to the 40 years of asking the same question. Without exception the P-51D was the Mustang of choice for combat ops because of the visibility (including the Malcolm Hood) and extra firepower. In other words nobody said they turned the D down in preference to the B.
Take what you want and leave the rest.
BTW Lednicer showed that the B dveloped a stagnation pressure pocket at the base of the P-51B (and Spit I through IX) windscreen and on the aft top of the canopy wheres the P-51D windscreen and bubble canopy had no stagnation pressure pocket or separation on the canopy, presumablt because the D had more slope angle aft than the B and the Spits.