It depends on your goals. If you want to be the best, like no one ever was, you’ll want higher IV Pokémon that you’ll invest stardust and candy into to power up. If you want gym fodder, anything will do.
I think many players keep high CP/meh IV Pokémon until they get better alternatives.
Also, only put resources into Pokémon you know you’ll use. Whether that’s for taking gyms (Machamp, etc) or current raid bosses (Tyranitar, Mewtwo, etc) or just something you like, make sure it’s a decent investment.
IVs’ importance is somewhat of a debate. If you look at the math, slightly lower IV Pokémon can perform almost identically to 100% Pokémon provided they reach the same breakpoints. There’s guides on this site that go more in-depth and explain how breakpoints, bulkpoints, and IVs work.
A good rule of thumb is generally the attack IV is the most important one (though this may change with the recent announcement)