The artificial sounds are legally required at low speeds, at least in the US and Europe. In the US electronic sounds are required at speeds below 30 kph. In the EU I think it’s 20 kph. At faster speeds the sounds of wheels on the road and such make electric and hybrid cars basically as loud as ICE cars.
There are very specific rules about the noises. It looks like there was some effort in the US to allow user-selectable sounds, but it didn’t work out. I found some info here, https://www.federalregister.gov/documents/2022/07/13/2022-14733/federal-motor-vehicle-safety-standards-minimum-sound-requirements-for-hybrid-and-electric-vehicles
Probably not directly helpful, but Nix packages for Chromium and Electron apps are set up so that you can switch to native Wayland mode globally by setting an environment variable,
NIXOS_OZONE_WL=1
I don’t know of any global setting that isn’t distro-specific.