In principle inertial confinement is not much different from internal combustion engines where piston compresses the mix, and the explosion energy is harvested. Here lasers compress the mix, and the explosion energy is not yet harvested (but measured).
Tokamaks (the other approach) are more like jet engines in that they sustain burning. But currently the burning in tokamaks requires more energy than it generates.