In general, the optimal theory dictates that the player is always making the decision that returns the most profit in the long run.
Game Theory Optimal (GTO) poker is “an umbrella term players use to describe the holy grail of no-limit holdem playing strategy” (MasterClass). Game Theory Optimal (GTO) Texas Holdem Poker Theory