I know people don't like to hear it but plenty also depends on how the cyclists behaves on the road.
Being a person who has always avoided group rides, I recently started about 3 months ago riding with a group after an invite from another forum member I have known for 15 years.
I invited 3 of my buddies and I can see a big difference in the way we ride. I have on video, one of my buddies switching lines and even though in the bike lane, I see him look back EVERY time before changing his line. That is what we are supposed to do. Make me proud that I look at my buds and you can tell they are well disciplined.
Then you see 2 abreast from the group, in a line of maybe 10 riders. I'm at the back to avoid trouble when I see a rider just pull out and go around the others WITHOUT LOOKING BACK FIRST!

Holy cow!
I see it often then I also see riders get passed, then come from the back as we approach a stop light insisting on being at the front of the group. Ok, now you made it so the faster riders have to pass you again for no reason taking risks. If I arrive in position #7 at the light, I stay there.
One chick I see insists on being at the front for bragging rights claiming to pull the group. Yeah, for a couple minutes then fades and gets dropped on the first smallest incline. Which again forces stronger riders out into traffic having to pass the fading cyclist who shouldn't have been up there in the first place.
Also, same chick falls behind. We stop at a red light. She passes the stopped group on the left and blows the red light if possible slipping between traffic. Wow! Dangerous and the other thing, it's illegal. Most the group want to avoid a $500 ticket for something stupid like wanting to be first when you shouldn't anyway.
I was chatting with the ride leader yesterday, suggesting that he give a little more instruction to the riders with unsafe practices. He says he tries but they don't listen. I told him I've felt like saying something at times but I just mind my own as I am not the leader.
But I sure would hate to see another rider get hit while going around with noting to prove. Or go around and get hit by a car and getting tossed into the group injuring several others.
I try to be safe. Even think that I shouldn't be riding in a group for given reasons and common practices in every group I have been in and seen.
I rode with another group twice 10 years ago. 10 minutes into the ride I was like HELL NO! Never went with them again, 2 crashes for stupid reasons ending up in broken bones. I saw it coming in the first 10 minutes out on the road with them. I mentioned it to the president of the club, he got upset and we ended up in a feud that lasted for years.
Till he got a taste of his own stupidity and crashed for stupid reasons ending up in his permanent disability and loss of one side of his body. Even right before his accident, I would see the club flying through red light intersections at blind corners. Wow!
Well, somebody learned by their mistakes and it wasn't me. I learn before I make my mistakes and make adjustments to keep myself safe. Too many riders get involved in a club or group then think all the stupid things they do are acceptable.
Forget all that ****, follow the rules, use good etiquette and keep yourself safe.
Not saying all bike accidents are the fault of the cyclist, but I see way too many cyclists setting themselves up for failure for no reason other than ego. F that, I finish in the middle of the pack or at the end as long as I am safe. And that is with a group of 30 that maybe 3 are stronger cyclists than I am. Safe rather than sorry!
It is as dangerous as you make it. Sadly I can see about 5 of the group riders getting hurt sometime soon.
