bullets don't hit turrets or walls but do collide with everything else?
I think for starters that's a good pick for a filtered approach that applies to everything, yes, even if it is kinda hardcoded and inflexile when it comes to accounting for other mods. Basically your aim should be to prevent regular wall designs from self-destructing; so that would mean no walls, gates, flamers + piping, lasers + power poles, turrets + inserters and maybe lights.
Radius locking sounds like a more versatile solution but i feel it may come with a ups penalty, depending on how you can achieve this.
Finally, changing it for the player sounded like it would achieve a big part of the desired effect. Maybe you can do something with factions to filter who gets damaged? Alternatively, can you forward to a damaged entity the instigator of said damage? If you can, maybe you can just check if source != player then restore the damage back or not deal it in the first place, whichever is more accessible - thus achieving the "player damage only" effect.
I am also curious if the new "target priorities" mechanic can be useful in any way, not sure if it can be used to create a sort of whitelist when it comes to who actually receives the damage or not.