Is ryzen 5 better than i5 for gaming. Both provide the necessary processing...

Is ryzen 5 better than i5 for gaming.  Both provide the necessary processing...Is ryzen 5 better than i5 for gaming.  Both provide the necessary processing...