Well for right now, I'd recommend Ryzen for the price to performance.
However, the i5 offers better options for CPU upgrades in the future. This comes at a higher price, of course.
What is your budget?
What resolution is your display?
What special tech classes will this be used for (eg. programming, 3D modeling, etc)?