The Germans never made any concerted effort to genocide the Swiss.
Well, yes, that's the point.

It's worth remembering that the Swiss allowed their railways and banks to be used by the Germans. I don't like your analogy.
Their biggest geographic advantage is also their biggest disadvantage. Even so, troops and war materiel did not pass along those railways in any quantity.

Israel is in an even better position, as where it is not surrounded by desert or mountain, it borders water.