The Intel Core i3-12100F wins in 11 out of 14 comparable specs, with 2 ties. Its biggest advantage is L2 Cache (400% better).
Core i5-6600K wins in 1 spec (Base Clock: 6% better).
Recommendation
Choose Core i3-12100F if you want the best overall performance — especially l2 cache.
Choose Core i5-6600K if base clock matters more to you.