So, my understanding of heat capacity at constant volume is that
$$C_V = \bigg(\frac{\delta Q}{dT}\bigg)_V$$
So far, so good. But according to my professor,
$$dU = C_VdT$$
for an ideal gas, even when work is performed, that is, when $\delta Q\neq dU$. I see that there are a lot of explanations to why the above formula is true, but I'm having difficulty understanding how can $C_V$ be equal to two different things at the same time?