Conformationally Controlled Chemistry: Excited-State Dynamics Dictate Ground-State Reaction