> if it is incompetent with the thing you gave it to do, don't give it more stuff to do.
When my code doesn't work, I don't sunset the code, I fix it. Why would the best course of action be to stop trying instead of fixing the root of the problem?
If your code doesn't work, it could be anything from a minor typo to a bad abstraction based on bad assumptions that requires a full refactor to get correctness and / or minimum acceptable performance.
About 90% of that scale requires sunsetting at least some of your code and doing something differently.
When my code doesn't work, I don't sunset the code, I fix it. Why would the best course of action be to stop trying instead of fixing the root of the problem?