Mil-spec is a standard of manufacturing to ensure interoperability, commonality, reliability and cost to ease the strain on military logistics systems. There is a mil-spec standard for many items the military purchases. Ten different companies can be contracted to manufacture receiver extension tubes, but each must adhere to the mil-spec standard or they will not be accepted. The result is that a soldier can remove a component from an M4 in an arms room at JBLM, such as a butt stock, and put it on an M4 in an arms room at Bragg and the fit is the same, no issues.
Commercial receiver extensions adhere to no such standards, there are widely varying manufacturing processes, and what stock fits on one extension tube may or may not fit on another.
Pick either or, but stick with it because they do not mix. My life has been spent in and out of foxholes, so for myself there is only one choice.