While the best unlocked phones almost certainly support GSM carriers like AT&T and T-Mobile, it’s best to look for devices that work with all the major U.S. providers, including Verizon.
One final caveat is that T-Mobile relies on a GSM (Global System for Mobiles) network rather than CDMA (Code Division Multiple Access). This isn't necessarily good or bad, but calls made through CDMA ...