The 8400 has a turbo boost of 4.0 and yes the ipc is a better on Intel's side, unless I am mistaken, the 4.0 boost is on a single core. Thats not to discount the R5. It does extremely well for the cost.
So on games it will increase depending on the load a single boost of 4 GHz, if you watch cpu usage when playing a game, most games will use more cores, but there will always be one that is utilized much more.
So at 4Ghz on the Intels IPC it will be better than a R5 1600 at 4.0, the trade off is when games start utilizing more cores to the fullest. There are some that already do but it isnt that noticeable. @
Evildeffy and @
Life-Binder can explain it much better than I can. Their research is much more extensive than mine.
If I were buying right now and I had a choice of the 8400 vs the R5 1600. I would choose the i5, simply because I play WoW.
As far as the motherboards, unless you plan on going to a "K" sku, the Z370 is kind of pointless to a OC extent as you cant OC a 8400, the features are nice, but not overwhelming. When they release the lower tier boards, I have no idea, the B360 is suppose to follow, I just dont know when.