My question is actually very simple. I would like to motivate it by bringing the following example:
suppose we have a (conventional) bond which generates $CF_1;CF_2;...;CF_n$ cash flow (for simplicity assume that $CF_1=...=CF_{n-1}$). In order to evaluate this cash flow, we say that we discount using yield to maturity (YTM), and the resulting present value (PV) is the price of a bond. I would like to underline that we call the discount rate as YTM.
Now, if some investment project different from bond (i.e. real investments) generates the identical cash flow as the bond disscused above: $CF_1;CF_2;...;CF_n$, then in order to evaluate this cash flow we again discount it, but now we replace YTM with "opportunity cost", "cost of capital", etc. As I know opportunity cost and YTM are not identical. Opportunity cost is the rate derived from the market which has the same risk level as our investment.
My question: In a liquid and well funtioning market, I think that opportunity cost and yield (or YTM for bond case) should be equal. Why? Beacuse, if my investment project's yield is higher than it is in the market, then everyone will invest in this project, therefore decreasing its return to the market return which is the same opportunity cost (sort of equilibrium rate). This implies that in the liquid markets any prjects' NPV should be equal to 0. Am I right? If no, why? Thanks!!