The overall picture is that a helmet’s thick material blocks high frequencies. But it exacerbates and amplifies low frequency sound and white noise. As well, a helmet confuses the ear’s capabilities for identifying direction of sound that’s incoming
If a helmet is helpful is a question of how fast the motorcycle is moving and what kinds of sounds the rider needs to hear.
It’s complicated, but wearing no helmet might be safer at low speeds because the driver is more aware. No helmet, is undoubtedly not safer at high speed because brains are fragile
Edit: a simple experiment for anyone is to put on a full size motorcycle helmet anywhere, and then you can understand how much your hearing is dampened by it. But I guess it’s probably no worse than the experience of someone driving a car, which is soundproof by design
There are certainly helmets that try to optimize for noise but there is no single one fix beyond ear plugs.