Selective electron-phonon coupling strength from nonequilibrium optical spectroscopy: The case of MgB
2Using broadband time-resolved optical spectroscopy on MgB$_2$, this work demonstrates that the selective electron-phonon coupling to the E$_{2g}$ phonon mode governs the nonequilibrium optical response on sub-100 fs timescales after photoexcitation. An effective temperature model analysis yields a coupling strength of $\lambda \approx 0.56$ for this mode, roughly half the total coupling constant, in line with ab-initio calculations. The same measurement on non-superconducting AlB$_2$ shows slower relaxation, confirming the absence of such strongly coupled modes. This establishes time-resolved spectroscopy as a method to resolve and quantify selective electron-phonon coupling.