Like Frontiersman, I’m not sure for what purpose, but:
I have both, use the M4 a lot more, and would choose it if I could have only one.
My needs/uses are defense and occasional 3-gun/2-gun.
Having said that, it’s a Benelli M1 by the bed and not the M4, but only because I have a light on the M1.