My analogy of the danger or safety of diving goes like this:
It kind of like crossing big city streets.
You get trained with rules on how to do it.
You practice it with trusted experienced people.
Special conditions may require special equipment and/or training.
With enough experience and training you may do it solo.
varying conditions change the risk such as weather, visibility, traffic and distance.
You can follow all the rules and luck still has a bit to do with whether you ever have a problem.
I'm sure we I could add more to this but I'd hope you get the idea.
You could die doing either but the idea is to manage the risk and enjoy the adventure.
It kind of like crossing big city streets.
You get trained with rules on how to do it.
You practice it with trusted experienced people.
Special conditions may require special equipment and/or training.
With enough experience and training you may do it solo.
varying conditions change the risk such as weather, visibility, traffic and distance.
You can follow all the rules and luck still has a bit to do with whether you ever have a problem.
I'm sure we I could add more to this but I'd hope you get the idea.
You could die doing either but the idea is to manage the risk and enjoy the adventure.