The M isn't an S Class, LS, 7 series competitor. I've never seen them claim that, its comparable in size, equipment, performance, and price to the 5 series. Clearly aimed at the 5.
You should drive one. The M is way nicer inside than the previous generation GS for instance IMHO...way nicer inside than the 5 series too IMHO which is cold and stark.