Shimano XT and SRAM GX are very comparable as both are 12-speed groupsets. They offer similar performance and weights, though XT is slightly lighter. On the other hand GX is cheaper than XT and offers a higher gear range thanks to its 10-52T cassette. Therefore, you need to decide what matters more to you.