How high you can oc is primarily determined by your luck in getting a good chip.
Not all will do 5.0.
as of 12/01/2017
What % of I7-8700k chips can oc
at a aggressive vcore near 1.4 or so and delidded
4.9 99%
5.0 72%
5.1 43%
5.2 16%
5.3 3%
Any Z370 motherboard will do the job about as well as another.
Pick a motherboard on other criteria.
As a suggestion:
The noctua NH-D15 is a very good cooler and is all you need for a max overclock in a decent case.
But, I might suggest hat the redesigned NH-D15s is a better cooler.
The s variants including the NH-U14s and NH-U12s have been redesigned to cleat tall ram and also are offset to clear graphics cards mounted in the first pcie x16 slot.