An overhead position trains the long head in its stretch, which grew the triceps more in a direct comparison.
Maeo et al., 2023: Overhead cable extensions grew the triceps about 1.4× more than the same exercise with the arm at the side, over 12 weeks. (21 untrained adults; one study.)