Opportunity cost refers to a benefit that a person could have received, but gave up, to take another course of action. Stated differently, an opportunity cost represents an alternative given up when a decision is made. This cost is, therefore, most relevant for two mutually exclusive events. In investing, it is the difference in return between a chosen investment and one that is necessarily passed up.
Read more: Opportunity Cost Definition | Investopedia
https://www.investopedia.com/terms/o/opportunitycost.asp