The way of thinking that AMD is trash is outdated . AMD has improved its CPUs lately. Starting from ZEN.
FX CPUs were pretty bad though, they had some serious overheating issues too.
RYZEN 2400G should be as good as a GT 1030.
Intel is actually worse than AMD these days. It's not very clear for some so I'll explain.
The stock fans Intel CPUs have can't keep them cool, so you need to spend additional money on a fan. Sure, a RYZEN might provide you with a weaker framerate, lets say your performance gets 10% lowered by a RYZEN and a GTX 1070 performs 35% better than a 1060.
We tried to build PCs with RYZEN and Intel CPUs with a specific budget and the results were like this
We could either build a PC with an Intel CPU and a 1060, or one with a RYZEN and a 1070 that, if we have the example I provided in mind, will give 25% more performance
Sadly, it was before the inflation of GPU prices.
AMD is better than Intel....for now....
Everything can change.....Intel might finally fix the problems its CPUs have....who knows?