Dissecting the extended main-sequence turn-off of the young star cluster NGC 1850