However, if going for 8400, I would go for faster RAM, as that Z board allows you to do so, and tests show Coffee Lake do respond good to faster memory.
Memory:G.Skill - Trident Z 8GB (2 x 4GB) DDR4-3200 Memory ($98.99 @ Newegg) Total: $98.99 Prices include shipping, taxes, and discounts when available Generated by PCPartPicker 2017-10-15 13:36 EDT-0400
Only 5$ more for better performance, quite a deal I'd say.