In short, if we compare Ryzen 5 3500U with Intel i5 8th gen, then Ryzen 5 has a clear lead. It's a better processor overall.
But if we compare Ryzen 5 3500U with Intel i5 10th gen, the Ryzen 5 3500U still leads in some of the scenarios.