I imagine as a for each that might slow things down.
I'm just wondering if we should have an expression to get the closest value from a list.
Sort of like min(), or max()
closest(value(a,b,c,d....)) or something like that.
That way you wouldn't have to rely on distance(), or objects.
Of course I'm not sure how that would work with xy coordinates either.