Grit / Quit.

Here's Annie Duke from her book Quit:

"That’s the funny thing about grit. While grit can get you to stick to hard things that are worthwhile, grit can also get you to stick to hard things that are no longer worthwhile.

The trick is in figuring out the difference."