Ryzen 3.
Heres why:
Ryzen has more cores
You can run it on a cheap b350 motherboard, on which you can overclock it
It comes with a better stock cooler, that will even be enough for overclocking
It is better value for your money
Hardware canucks has made good review of it on youtube, very unbias and i recommend you watch it.
Like everyone mentioned before me, ryzen 3 is the way to go.