Is bjj better than Judo for self-defense?

Hello! I want to know reasons why BJJ can be better than Judo in street situations or vice versa

In what situations could bjj work and Judo not? Or in which Judo works and BJJ doesn't?

And which one is more safety to practice (avoid injuries)?

Could you please be as impartial as possible?

Thanks in advance