I’ve got Shimano (RS685 levers + RS505 calipers) on one bike, and SRAM Force (was with Force 22 mech, now Rival 1).
For shifting Shimano beats SRAM hands down. SRAM Force is the only system I’ve ever struggled to get indexing working properly on, not helped by the idiotic cable routing on the SRAM hydro levers. Even when it’s working, I find Shimano levers much nicer to use. My Shimano levers suffered from slightly baggy hoods, but some crash damage inspired me to replace them and they’re now much better.
For 1x Shimano doesn’t have a good option.
For braking: when they’re working there’s not much to choose between them. My Shimano calipers are currently away under warranty for the dreaded seal leak.
Overall, if I was buying new, I’d go Shimano for 2x, and reluctantly go SRAM for 1x.