I learned the phrase from my highschool American History book. Early in the Spanish-American war, the US Navy sent a force into the harbour of Havana, where it faced a "Hobson's choice" whether to go within range of the guns of Moro Castle, or go through a mine field.