Learn English – An expression for not giving up when you know you should

idiom-requests

Is there an idiom or expression that describes a situation where one knows they need to stop doing something that's not working, but they don't want to because of all the effort they've already put into the project?

For example, what might I say to a person who needs to scrap the project they've been working on for years because it's just not working and there are outside options that work better?

It seems similar to "throwing good money after bad" or "reinventing the wheel" but I feel like there is a more specific phrase out there.

Best Answer

"Flogging a dead horse" is the expression that comes to mind for me. This might be BrE only...