I would think, while not optimal, the i5 is still a better option. Many users have reported issues with the iGPU and if you can, disable it completely in the bios.
Is there any reason why you are going after a Ryzen 5 2600 instead of a Ryzen 7 2700X CPU, or the i5 8600k instead of the i7 8700K CPU ?
I know that the Ryzen 5 and i5 CPUs don't make that much difference when playing games, but they can make a significant difference when encoding video. ( most NLEs will default to CPU processing power first with GPU processing secondary )
the ryzen 5 2600 was my original plan then my friend said i could overclock the i5 to 5ghz and I heard intel is better at sony vegas rendering which I don't know if that's entirely true...