```python
def find_first_duplicate(nums):
    """
    Finds the first duplicate element in an array.
    The "first duplicate" is the element whose second occurrence has the smallest index.
    
    Args:
        nums: A list of integers.
        
    Returns:
        The first duplicate element, or -1 if no duplicates are found.
    """
    seen = set()
    for num in nums:
        if num in seen:
            return num
        seen.add(num)
    return -1

```