When you play Switch games, the save data will go to the internal memory. Whether you own a physical or digital copy doesn’t matter. Switch save data can’t be transferred to microSD cards, however.