Just to round out the answers -- @jp314 and @Andyaka gave great explanations, and @Antonio51, waveforms -- there is some merit to operating on the boundary between them as well, hence: BCM (boundary conduction mode). Or CrCM ("critical"), or QR (quasi-resonant), or sometimes, "valley mode switching". (Always check the waveforms to get a clear definition of what some term is being used to mean.)
Anyway, consider DCM: as the inductor current falls to zero, the catch diode recovers softly (i.e., at dI/dt defined by the inductor, not the switch), and voltage rings down freely between VIN and GND. If we turn on the switch just as that ringdown reaches an upward peak, the voltage across the switch is minimized (or indeed zeroed, if approx. Vin < 2 Vout), reducing or eliminating switch turn-on losses as well. This is BCM operation.
I suppose, strictly by what the words mean, BCM means, switching on at any time after inductor current reaches zero, but before the ringdown has dissipated (which is just plain old DCM); quasi-resonant (QR) specifically is switching on during one of those peaks. Or perhaps BCM, QR and DCM all overlap, with the former two being limited to the edge of that case. Anyway, that's just semantics; what's important is the physics, not what we call it.
The advantage to this mode is, reduced switching loss versus DCM (due to the reduced switch voltage), and much less than CCM (which incurs full switch voltage at turn-on plus diode recovery).
The disadvantage to BCM and DCM, is the inductor (and input and output capacitors, to a lesser extent) needs to be very high quality. QR boost PFC is a very popular application, and typically requires a gapped ferrite-core inductor, wound with litz wire. Solid wire on a cheap powdered-iron core will not do.
This is kind of not even applicable to buck, in practical terms, as I can't remember having seen a QR mode buck controller; it is fairly popular for flyback and boost, though. To be clear, the scheme works out exactly the same (buck and boost are ultimately the same circuit, operated with forward or reverse current flow), it just happens to not be popular for buck mode.