> Dogs were bred to fearlessly attack anything unknown and that's exactly what they do.
This is completely untrue and the complete opposite of how dogs evolved. Dogs were domesticated to live among humans in harmony. If you experience a poorly behaved dog, it’s the owner at fault. Some owners mistreat their dogs and/or raise them with poor social habits, causing the dog to behave aggressively towards humans. It’s learned distrust, for which you have people to blame. Good owners will treat their dogs well. Such dogs will not attack another person unless their owner is being physically harmed. I don’t know if you’re living in America, most dogs in North American society come from well-adjusted homes where people treat them as members of the family.
You can learn how to make friends with any dog. It can be taught. The fear you experience is learnt and can be unlearnt.