The Intel Core i5-14400 wins in 6 out of 14 comparable specs, with 3 ties. Its biggest advantage is Total Cores (67% better).
Ryzen 5 8500G wins in 5 specs (Max Turbo Power: 56% better).
Recommendation
Choose Core i5-14400 if you want the best overall performance — especially total cores.
Choose Ryzen 5 8500G if max turbo power matters more to you.