What are you using the processor for?
From my experience the 5600G is generally like the 3600 models.
If your purpose is just gaming and have no intention to upgrade the graphics card, can go with Ryzen 5 3600.
If you have intention to upgrade graphics card then go with 5600X.
AMD Ryzen 5 5600G with GPU GIGABYTE GeForce GTX, PC SETUP