Once as a pedestrian, at least once as a cyclist.
The pedestrian one may have been my fault. I was knocked out and have no memory of what happened immediately before I was hit. It was at a crossing I know well, and even though I was twelve years old I was much more careful than usual about crossing roads. This was partly because a girl at my school had been knocked down and killed by a drunk, speeding, red-light-jumping driver while crossing at a zebra crossing showing a green man* - I assume you won’t claim that was her fault? So it would be out of character for me to just walk into the road without checking. However, the driver claimed I’d just walked out in front of their car and I wasn’t really in a position to argue, so it’s certainly possible it was an accident of my own making. I wasn’t about to try to get the driver charged with something based on my own knowledge of my road habits.
The cyclist one was, without question, not my fault. The car came out of a driveway without checking for oncoming traffic. It was a difficult driveway to exit but what that means is that they should have edged out gradually rather than just coming out at normal speed. I wasn’t injured (nor was my daughter, on the back of the bike in a child seat) because I’d had a couple of near misses on that driveway before, but since we toppled over backwards on a hill there’s an element of luck there. After that I’d just get off and walk the bike carefully past the driveway, but even then there were some near misses.
Actually I know I was hit in a minor way by cars while on my bike at least a couple of other times, but can’t recall the details right now. They also weren’t my fault. I don’t cycle any more but was always careful to avoid going anywhere lorries or other high-sided vehicles, did actually stop at traffic lights, etc. A minority of drivers seem to have a strange idea of how much space a cyclist needs - it’s like they assume that you need the space of the width of your bike, as if you don’t have legs and arms as well.
While some pedestrians do seem to act as if they are playing human frogger on the streets, some drivers are also inattentive, thoughtless etc. And since pedestrians at some point will generally have to cross a road, you have to just size up the risks and get on with your life. And hope that you’re allowed to do that latter part 
Now because I’m disabled I’m really, really slow when crossing the road. A couple of times I’ve had drivers edge up dangerously close to me on pedestrian crossings, and I wouldn’t be able to jump out of the way if some arsehole came zooming up the road. But I still have to cross roads now and then. What else do I do, never leave the house?
Do you think every time a car is hit by another car, the car that was hit was at fault? Or if it’s about relative danger, is it always the fault of a car driver if they’re hit by a truck?
*In the UK we have a green man for go for pedestrians. So I always said to my daughter to watch for the green man at crossings. When visiting New York I had to change this to watch for the white man and that felt really odd to say 