Depends on where you live, I guess? Where I live, leaving the scene of an accident or ‘failing to assist’ is a crime. You are meant to stop, call emergency services and see if you can help in any way, even if it just directing traffic away or setting up your emergency cones around the scene. Most of our roads are pretty damn desolate places, so it make perfect sense.
I was at the scene of a motorcycle accident once. I didn’t see the man fall, but a car came towards me and flashed his lights at me, so I slowed down as I made the curve and there he was on the ground, the bike fallen in the middle of the road and he was crawling toward the other side of the road. Thankfully, there was a car behind me with a nurse in it, but I stopped, put my emergency lights on and waved down traffic as the nurse assisted the injured man and someone lifted the bike out of the middle of the road. (I couldn’t lift it… I am a tiny wee thing and was even smaller and weaker back then.) I left my telephone number with the people in the car with the nurse and told them what I saw and they had pretty much seen the exact same thing, as they were right behind me.
I was astounded that the car that had come toward me from the other way simply flashed its lights and didn’t stop to help. It was a country highway, with not tonnes of traffic, so that poor biker could have been laying in the road or even run over by a car because he was certainly not on his feet.
I remember learning drivers ed in the US (many many moons ago) and we were taught that people who see accidents happen, even is someone isn’t hurt, are meant to provide contact details or a statement when the police within a certain time frame. I think it was 24 hours or something. So, if you had kids in the car or on the way to an appointment, sure, carry on, but then you do have to ring someone and tell them where you were and what you saw.
I would feel compelled to stop. Bad drivers bug the hell out of me.