human
Comparing elements between elements in two lists of tuples
assistant
Here is some code to get a list comparing two lists of tuples `l1` and `l2` if any first value in `l1` matches with first value in `l2`

[x[0] for x in l1 if any(x[0] == y[0] for y in l2)]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.