Assuming speeds are equal I think the consequences of a crash are better on a scooter. You don’t have a crossbar between your legs to trip you as you fall, and you start in a standing position, so you’re more likely to land on your feet. Also your head and shoulders are above the cars so you’re less likely to end up under the car.
Having said that I think scooter crashes are more likely given the tiny wheels and less stable frame. Try riding an e scooter without hands. It doesn’t self balance like a bike.