Most hadrosaurs are much bigger than elephants and would be incredibly dangerous to be around.
In general it's a bad idea to approach wild animals. Anything bigger than like medium dog size is dangerous and a bad idea to approach.
Some of the ornithomimids might be exceptions, but in general only the smallest animals in the game would actually be safe for humans to be around. And even some of them, like Compsognathus and Lystrosaurus, we've seen eat people...
Do any of you remember a Lystrosaurus had bitten Rainn Delacourt in Jurassic World: Dominion?
None of us know the answer to why Oviraptor attack humans in Dino Crisis 2.
In Jurassic Park: Operation Genesis, I once had herbivores roaming the visitor area. People were awed at seeing those dinosaurs, but there were some who become terrified. Having security cameras in the visitor area ease the guests lessening the likelihood of the people becoming terrified. It something not recommended for Jurassic World: Evolution 2.
Honestly, I find the "Dinosaur Guest Hostility" sandbox setting "too good to be true".