State laws determine whether pharmacists must or can choose to give you generic drugs instead of brand names. These rules affect your costs, adherence, and safety-here’s how they vary across the U.S.