AMD Ryzen 5 5600 vs AMD Ryzen 5 8400F: What is the difference?

AMD Ryzen 5 5600 vs AMD Ryzen 5 8400F: What is the difference?