Lying in that situation is the right thing to do. It cannot, even in anyone’s wildest imagination, be the wrong thing to do. If you do insist on saying that it is still objectively wrong, ‘but you could do it in that situation’, then you’d be saying, in effect, that lying is objectively wrong but relative to the situation.
Here’s an interesting detail from the film “Dekalog” (10 Commandments), by Polish filmmaker Krzysztof Kieslowski, a series of 10 short films (each about one of the 10 commandments), that aired on Polish television in the 1980’s and subsequently has become a classic of world cinema:
*In one of the episodes (devoted loosely to “Thou Shalt Not Bear False Witness”) a professor of philosophy is discussing a Catholic family in Poland who refused to hide Jews during the Holocaust – a mother and daughter who had come to them for help. The explanation that Catholic family had given is that they cannot lie or be deceitful, by hiding a family. After all, “thou shalt shalt not bear false witness against thy neighbor.”
One of the philosophy students–himself a Catholic, presumably, in very Catholic Poland–said to the class, “then they couldn’t have been Catholic… Because, if they were, they would have known that there was a value even greater than the importance of telling the truth in all circumstances – namely, the value of preserving life.”
I’ve heard this argument, among Catholic themselves, so it seems that there is no clear consensus on this. What I do know is that I haven’t yet heard a Catholic who dared say that concealing Jews during World War II was wrong; and that, if the Nazi officer were to come to one’s house, and ask, “tell me truthfully – are you keeping Jews here?” that a true Catholic should have said, “they’re downstairs, down the long hall – second door on your left.”
So these situational ethical dilemmas are very real, as I think you are right to point out. Indeed, what happens when there is a collision between two moral values? Do I act deceitfully–hiding and skulking around, and concealing information–to save a life? Or does one rather say that all of those who concealed Jewish, or gypsy, or other targeted families, during World War II, were behaving immorally?
It is one thing to refuse to lie to save one’s own life, and quite another to refuse to lie to save the life of your neighbor.