Sure, that's a terrible idea even for books with magic systems in them.
But people in this thread seem to be operating on different levels of "make sense."
I don't understand how the cleric class mechanical chassis only "makes sense" as an agent of the gods. Heck, the 5e SF hack Esper Genesis built its engineer class on the cleric chassis. I don't always like such direct translations, much as I didn't care as much for the 3e products that were more "D&D lightly painted with another genre" rather than really fitting the new setting, but they do not break the laws of logic.
Nor do I understand, to address a different poster's complaint about incoherence, how the world suddenly stops being coherent if things inspired by Iron Man or the Death Star* show up in a D&D campaign. If you would never do it or find it cringe, that's one thing, but concepts like "coherence" and "making sense" should probably have a more objective foundation than just "I don't like it."
* Or, in a particularly gonzo/multiversal game, Tony Stark and the DS-1 themselves. I've read the very famous storyline in which Iron Man and Dr. Doom get cast back to Arthurian times, and D&D has had visiting space vessels since "Temple of the Frog." I can understand a "coherence" complaint there as to theme and mood, if you want a particular flavor to your game, but such things can obviously fit in someone's D&D game.