Excluding LC cus, a Onix vs Groudon is just weird. Is it how much they are used? Or is it how strong they are? Or by stats/movepool?
It's generally determined by stats and movepool.