They're both m2 socket but they've got different key fitments. The Samsung 960 evo is M key while the Corsair MP300 is B+M key.
Read this, it should make the differences easier to understand than me trying to explain it lol but basically B+M is backwards compatible with sata m2 sockets and is slower.
This post shows you the difference between M.2 M and M.2 (B+M) in the aspect of plug (on SSD) and slot (on PC).
www.partitionwizard.com