It doesn't matter as long as it is the same make and model.
From the FAQ on the AT&T website: "Once you have reached upgrade eligibility, you can trade in your eligible smartphone (or one of the same make and model) in good physical, and fully functional, condition to upgrade."