Logic tells us that both RWD and P3D can't get the same 310 range with different Wh/mi rating and same battery size. Therefore, there must be something setting that determines if the battery is a RWD or AWD/P, so that the AWD/P is effectively bigger to achieve the 310 mile range in the AWD/P (i.e. battery softtware limited in the RWD).
Is this plausible?
No there is only one battery size, and I highly doubt there is any software locking of any of it.
What we don't know is if Tesla applies a different rated range metric to a P3D+ than a P3D- or RWD. (We know that the AWD and P3D- get about 12% less range than a RWD Model 3, a P3D+ would get even less than that because of the wheels/tires.)
And again the range is listed as 310 for the RWD Model 3 because Tesla asked it to be reduced to that. (The range is reported artificially lower than it would be if you used actual test results/calculations.)