Let's say we have 2 Elements:

```
x = (123, 'aab', 1)
y = (456, 'cca', 2) or y = None 

```

where `x[0]=Key, x[1]=Value, x[2]=Index` and `y[0]=Key, y[1]=Value, y[2]=Index`, where `y` can be potentially be `None`

Is there an elegant way in Python to compare the `Value` of both Elements with the `min` function and return the corresponding `Index`? Considering the case, that `y` can be potentially be `None`. For example

```
x = (123, 'aab', 1)
y = (456, 'cca', 2) 

```

would return `1` since `min(123,456) = 123`  so `x` has the smaller value.
or

```
x = (123, 'aab', 1)
y = None

```

would also return `1`