those two cpus have nothing in common, nor the ram, the price range or performance in common
the i5 should be better for games, but is more expensive, needs a intel compatible mainboard and uses ddr4
your minimum change if you consider that, will be like buy a new pc