The Intel Core i5-14400 wins in 7 out of 14 comparable specs, with 3 ties. Its biggest advantage is Total Cores (150% better).
Core i3-12100F wins in 4 specs (MSRP: 56% better).
Recommendation
Choose Core i5-14400 if you want the best overall performance — especially total cores.
Choose Core i3-12100F if msrp matters more to you.