Brachylog, 7 6 5 bytes
ℕ₁≜¬∈
-1 stealing Fatalize's solution to the dupe target--note that my acceptedaccepted reverted golf suggestion fails on the empty list. Whoops
Reversed I/O.
ℕ₁ The output is a positive integer.
≜ Try every value for it until one
¬∈ isn't in the input.