I have been studying the clock muxed from this source:
https://vlsitutorials.com/glitch-free-clock-mux/
In this and many other websites, the clock mux is a flip-flop-based circuit. From what I understand, the circuit is constructed with two gated clock cells. (The gated clock cells that I mentioned are explained here)
Most of the gated clock cells I saw on the web were implemented with latches.
Why aren't latches used in the clock muxes then? Could we have used latches instead of flip-flops in the circuit?

I am asking whether we can use latches instead of flip flops... that is not what you asked ...Why aren't the clock muxes are also made with latches?... please edit your post with a correction to your question \$\endgroup\$