The 2700 is a better cpu BUT for gaming the difference is minimal.
In a lot of titles the 2600x will perform better due to its stronger boost clocks.
Save money with the 2600x (also if you pair it with a x470 board which hits full precision boost 2 speeds it is 100% pointless overclocking the 2600x)