AMD Ryzen 7 5700's Advantages
Higher base frequency (3.7GHz vs 3.5GHz)
AMD Ryzen 5 8500G's Advantages
Released 1 years and 9 months late
Integrated graphics card
Higher specification of memory (DDR5-5200 vs DDR4-3200)
Larger memory bandwidth (83.2GB/s vs 51.2GB/s)
Newer PCIe version (4.0 vs 3)
Lower TDP (45W vs 65W)