M4: a short barrel is easier to use in close quarters fighting, and this outweighs the loss of accuracy at longer distances.