Some premium content gets deep into this. Generally it's divided into two parts. One is to to have cards in your hand that make it harder for your opponent to have a nutted hand. The classic example is holding the A
on a board with 3 other
on it. You know your opponent can't have the nut flush, which may mean he has very few if any flushes in his range, and also if the way the board and had plays out makes it unlikely for him to have a set, you can really put the screws to him when you block the nuts and his range is capped. That's possibly what happened to me
here.
The other part is to think about the types of hands you are trying to bluff your opponent off of, and want to have hands that don't block those. This is more true on later streets where their range starts to narrow. An example might be having KT on a QJxxx board that you played aggressively to the river and whiffed on. It might be a good candidate for a give up, because KQ/QT/JT are the types of hands you might be trying to get to fold with a big river bet that are now less likely because of the cards in your hand.
That's the 30,000 foot view of it. Knowing your range in every spot, knowing your value, finding your bluffs, and sizing appropriately generally takes a lot of off table training and work to really understand. I'm pretty green in that area myself.