You have made a false math assumption. You have caught from the wind "taking average and multiplication are distributive". That's not true as you have already found.

You must calculate P(t)=U(t)*I(t). That's the momentary power. The average power is the average of U(t)*I(t) calculated over the period of interest. With sinusoidal current and voltage we calculate the average over one cycle.