Plastic jugs let in lots of light, while paper cartons are opaque, which could have an effect.
FWIW, I do have a preference, I think milk is best drunk straight from a paper carton (in single servings, milk from the plastic "milk chugs" has always tasted worse to me).