Oh, that's a tough one. Because we, as riders, are the visitors and the best we can do is not disturb the wildlife. You did the right thing by going the other way. Better to turn around and try again in 30 minutes than get charged by a scared animal.
I hear what you are saying too. "what if I fly around a corner to face an alligator?" is something many riders ask themselves. Riders have had that happen. They stop and turn around.
One thing I remember from a long time ago: "Make noise when in the woods, better to shush an animal away with sound than with a foot." Some people don't like my bike bell, including me, but nothing says "I'm here!" better. Plus a bell is easy on the voice. At last count, hitting the bell before a blind corner has saved me from head-ons with 6 riders (coming at me), 3 large deer and 2 hogs. (All on separate occasions)
I don't count the 4 splashes I've heard.
Good Luck and let us know what works for you