Roughly the same price. Game results are neck and neck, win some - lose some.
Advantage goes to Ryzen for much better stock cooler.
Advantage goes to Ryzen for adaptability to tomorrow's games that can/will take advantage of higher thread count.
Advantage goes to Ryzen, the socket isn't dead yet, you can still upgrade to a newer, faster generation of cpu.
Ryzen has advantages that Intel can't match, not without a more serious investment. As long as you get a decent (that means not the absolute cheapest) b450 mobo, Ryzen can handle almost all of its cpu range. With Intel, it's seriously looking like lga1151 is done, 10th gen will be different, so your only possibility of upgrade will be a 9600k or lower i5, which is what you'd have in the 9400f, since power requirements of the 9700k and 9900k are well beyond most Intel consumer boards, you'd need a very good Z390 to start with.
Everybody raved at what a great little chip the Intel Pentium G3258 or even the i3-6100 was, especially with some OC. But really, how far could a dual core go with today's games, nevermind tomorrow's.
I see the 9400f as the same thing. Pretty good right now, but in 2-3 years who knows.