If your purely gaming this chip is about the only good deal from intel.
Problem is a ryzen 5 2600 has smt and supports overclocking. Because of this, the 2600 wins in multithreaded workloads, has much more stable framerate in games and is only slightly behind in overall gaming framerate.
Plus the 2600 utilizes dirt cheap b450 boards while the 9400f needs a slightly more expensive b365 motherboard or a much, much more expensive z390 motherboard to gain a simmilar feature set to b450 including the lack of an artificial ram speed limit and support for overclocking.