When controlling inductive loads with semiconductor switches (transistors), the most dangerous for the devices is "flyback voltage" that is generated by an inductor when the switch gets turned OFF.

In theory the back-EMF [voltage is determined][1] by self-inductance and the rate of current change, as presented in layman terms:

[![enter image description here][2]][2]

VL = Ldi/dt

Therefore, the practical level of voltage spike depends on how fast your switch is. If you would use a mechanical on-off switch, when the switch impedance changes from milli-ohm (switch closed) to giga-ohm (switch open) in a fairly short time, the di/dt is infinitely high and the theoretical **voltage spike is infinitely high**. That's why electro-mechanical switches always "arching". And holding the inductor's wires might give you a sensible shock when disconnecting them from a battery. Therefore this flyback voltage can damage any silicon device. That's why the clamping diode is always a necessity. For engineering-level description, look at this [Infinion appnote][3].

Technically you can reduce the di/dt using a very slow switch (with high breakdown voltage), and avoid the flyback diode, but slowing down the switch will likely cost much more than a diode. 



  [1]: https://www.electronics-tutorials.ws/inductor/inductor.html
  [2]: https://i.sstatic.net/8YHoi.png
  [3]: https://www.infineon.com/dgdl/Application-Note-%20Switching%20Inductive%20Loads%20-%20Rev.1.0.pdf?fileId=db3a30433072cd8f0130abdf9c3b25fd