The US explicitly allows people to get a second passport to allow them to visit countries without facing this issue. For example, if you want to visit Lebabon, you can get a second passport if you later want to visit Israel.
I don't know if Canada or other countries do the same thing.