Well, I was going to recommend these if you are replacing halogen bulbs:
https://www.diodedynamics.com/low-beam-led-headlight-for-2015-2019-subaru-legacy-pair.html
But then, I noticed they have added a disclaimer about not being DOT compliant. These are what I have on my 2018 Legacy, and they claimed they were DOT complaint at the time. Not sure what changed. I guess I am running illegal headlights now.
Edit: I noticed they claim to still be street legal in the long description, so I guess they are legal but not compliant -- whatever that means.