Xbox Smart Delivery will ensure that you are always playing the best version of the game available for your console, regardless of whether it is a digital or disc based purchase.
More information about Xbox Smart Delivery is available here: https://support.xbox.com/en-GB/help/games-apps/game-setup-and-play/smart-delivery-faq