Or just get a Ryzen 2400G APU for about $136. If you don't want a gaming PC, you likely won't notice the difference between 4 cores/8 threads and 6 cores/12 threads. The IGP on the Ryzen is superior to anything from Intel.But what if you don't want a gaming PC? Both these chips require a standalone graphics card, which currently is the Nvidia GT710 at US$35-37. This is a terrible excuse for a graphics adapter, but the more reasonable GT1030 starts at roughly US$75. An i5-9400 CPU (including IGP) costs me US$181, which compares with US$188 for the Ryzen 2600 + GT710 combo. I could well be wrong, but I suspect the Intel IGP is superior to a GT710.
In fact, nowadays if you don't want a gaming PC I'm not seeing much reason not to get a CPU with an IGP.