The difference is that the I5-12400 comes with an integrated GPU while the I5-12400F version doesn't, that's literally the only difference between them aside from the "F" version being a little bit cheaper due to not having an integrated GPU, you can read our article about the differences between the F and K in intel processors.