Discrete Choice and Rational Inattention: A General Equivalence Result · Study