Tesla's can "see" humans, cyclists, cars, etc, independent of the headlights.
It's possible that this awareness is what's used as input for the matrix headlights. Either entirely, or in coordination with detecting oncoming headlights.
I'm confused about your mention of technical solutions. What would a non-technical solution look like?