Depends. Assuming they have the same potential, you need to see all the data you have. The stadistics said a lot. Study them. A good number of assits or rebounds. To many TO means low handling or pass. Poor minutes without fouls means low stamina. Steals means certain level in OD, etc, etc...
We could say the rating is based on future salary of the player, and the salary are affected more for the main skills. A well balance player probably will have a worst rating but will have a better future.