Cuda cores, memory bandwidth, software support, task characteristics. But really it’s complicated enough that people usually do empirical measurements. If you want simple and both cards are still on the market, you could go by $$$.