Simone De Beauvoir said this quote

In the face of an obstacle which it is impossible to overcome, stubbornness is stupid. If I persist in beating my fist against a stone wall, my freedom exhausts itself in this useless gesture without succeeding in giving itself a content. It debases itself in a vain contingency. Yet, there is hardly a sadder virtue than resignation. It transforms into phantoms and contingent reveries projects which had at the beginning been set up as will and freedom. A young man has hoped for a happy or useful or glorious life. If the man he has become looks upon these miscarried attempts of his adolescence with disillusioned indifference, there they are, forever frozen in the dead past. When an effort fails, one declares bitterly that he has lost time and wasted his powers. The failure condemns that whole part of ourselves which we had engaged in the effort. It was to escape this dilemma that the Stoics preached indifference. We could indeed assert our freedom against all constraint if we agreed to renounce the particularity of our projects. If a door refuses to open, let us accept not opening it and there we are free. But by doing that, one manages only to save an abstract notion of freedom. It is emptied of all content and all truth. The power of man ceases to be limited because it is annulled. It is the particularity of the project which determines the limitation of the power, but it is also what gives the project its content and permits it to be set up. There are people who are filled with such horror at the idea of a defeat that they keep themselves from ever doing anything. But no one would dream of considering this gloomy passivity as the triumph of freedom