ElectrO_90
it wasn't the question though your on point about the generation gaps. but not all people in all countries can purchase the latest Ryzen or 8-9th gen Cpu's
tomasknn
comparing the cpu power of the G4560 versus the I5-7400 it is clear the upgrade to such a processor in this case is well worth it as it is more than a 50% upgrade in power and speed (51.2% to be exact) therefore I would say yes it is worth the upgrade.
if you have a monetary budget and a world location you can provide, as you see from previous posters we may be able to discover a better "deal" for the money than a i5-7400 upgrade for you. let us know if it an interest.