From a performance point of view, they are comparable.
Here are the passmark numbers:
I3-13100 8 15611/3767
I5-11400 12 17319/3051
R5-5600G 12 19825/3188
R5-5500 12 19512/3053
All are ok for gaming. 8 threads is enough unless you are heavy into multiplayer.
The last number is the single thread rating which is most important for games and desktop quickness.
You could pick any, but ryzen is picky about ram compatibility and needs fast ram to perform best.
Pick integrated graphics if you can. When gpu issues arise, it is invaluable for diagnosing and will keep you going.