Usually the box matters more than people expect. Most retailers treat the original packaging, inserts and receipt as part of the product, so a bare disc is often refused at the counter.
Three things: the store's return policy, whether you have proof of purchase, and the condition of the disc. A few shops will still process an exchange or store credit as a goodwill gesture, but that is at the manager's discretion rather than a right.
The practical move is to phone the specific branch before you go, describe what you have, and ask what they can do. If the purchase was made online, the platform's refund rules apply instead, and those are usually stricter once a game has been launched.