I don't have my old Duelist magazines with me, but I believe that Magic had cantrips before D&D did; 3rd edition D&D came out in like 2000, while the original cantrips came out in the Ice Age magic expansion, which I believe was in 1995.
edit - I'm well aware that D&D is older than that, but I don't remember the word "cantrip" in earlier editions.
In D&D cantrips go back to Unearthed Arcana in 1985.
Using my google-fu I see that 'cantrip' is a very old Scottish word meaning a trick or a small bit of magic. Therefore it's very unlikely that it was invented by the designers of D&D or Magic: The Gathering. Havins said that, I think you can see why both of those games would use it quite independent of the other, just as they both use words like 'golem,' 'necromancer' and 'sorcery.'
Since you quoted my post, it looks like you're responding to me, when in fact you neither refute, agree with, or otherwise interact with my correct assertion that, in D&D, cantrips go back to Unearthed Arcana in 1985.
That's the internet for you!
Also Magic got the term from D&D. I know this because the people who work on Magic have said it flat out, starting with the people who worked on Ice Age, where they introduced cantrips. So no, not like, well not like necromancer and sorcery. Golem was a poor example since Magic's Golems started out as D&D Golems rather than Jewish ones.