NPV discounts every cash flow at the cost of capital, which implicitly assumes reinvestment at that same rate. IRR instead assumes reinvestment at the IRR itself, an optimistic assumption that is often unrealistic for very high-return projects. This is the classical reason NPV is preferred whenever the two methods rank projects differently.