Ultrasound can differentiate between intratesticular masses, which are generally malignant, and extratesticular masses, which are generally benign.