Sorry if this is a trivial question, but I am not doing signal processing everyday. I will try to express what I think I have understood as best as possible.
Suppose I apply a (linear) sweep signal to a system (like a loudspeaker in a room) and measure the response. To the input and output of that measurement I apply a finite Fourier transform each. By dividing the FT of the output by the FT of the input, I obtain an estimate of the transfer function $A(f)$ (within the limits of the finite measurement interval). The inverse Fourier transform of this "transfer function" gives me the impulse response of the system, and hence, the coefficients of the FIR filter that represents the system.
If I calculate the complex reciprocal of the transfer function in frequency space (possibly with some regularization to deal with zeroes), i.e. $B(f)=1/A(f)$, I get a transfer function, the inverse Fourier transform of which gives me an FIR filter that reverses the system's action on the signal as much as possible (i.e. it equalizes the room for example). I might then put the coefficients into a DSP board to carry it over into reality, i.e. a real room equalizer.
Now I have seen a YouTube video of someone working with the tool REW for room equalization, who claims (around timestamp 20:10) that one has to turn the reciprocated transfer function $B(f)$ of the system into a "minimum phase" version first, before using it as an "equalizer" of the system, i.e. before transforming it back to an inpulse response/FIR coefficients. Otherwise, so he claims, the filter's response would result in "massive ringing".
What is the theory behind such a claim and how is the construction of minimum phase actually done? Isn't it the case that the system response is trivially causal (because it is a physical system) and stable, and so its inverse must also be causal stable? So, shouldn't it be minimum phase automatically?
And wouldn't it be more natural to use the impulse response ($FT^{-1}(A)$) directly as the coefficients of an IIR filter, which would possibly provide a much better equalization with the same number of coefficients, simply because IIR filters reproduce damped oscillating systems (like sound in air and speaker membranes) better? In order to simulate an exponentially damped sine function, one would need a huge number of FIR coefficients if damping is slow.
Update (2023.02.25): I found that my preferred DSP (Analog Devices ADAU1701) has an "AutoEQ" block (in Sigma Studio), where I can load an impulse response file and let the tool equalize it automatically. It works by fitting a user-defined number of simple filters to the spectrum (or a range thereof). I guess the simple filters are all minimum-phase by design, so the result is also. One can see the optimizer at work in the UI graph window. This is exactly what I meant in my comment to Dan Boschen's answer: a more direct and efficient way to find the equalizer (as opposed to polynomial factorization).
Of course it is already reduced in filter order, and so it is not the same as minimizing phase over the full order of the acquired spectrum. But actually this is not a drawback but a feature, because it already realizes the necessary smoothing mentioned by Hilmar. Plus, the individual filters are IIR and hence, also work well in the low-frequency range. Anyway, it fits my purpose very well. And it is good to have a rough understanding as to how it is working under the hood.