The Intel Core i7-14700 wins in 8 out of 16 comparable specs, with 5 ties. Its biggest advantage is E-Cores (200% better).
Core i5-13400F wins in 3 specs (MSRP: 42% better).
Recommendation
Choose Core i7-14700 if you want the best overall performance — especially e-cores.
Choose Core i5-13400F if msrp matters more to you.