Magical Secrets
Can a bard replace spells gained through Magical Secrets? When you gain a level in the bard class, the class’s Spellcasting feature lets you replace one bard spell you know with another bard spell of an appropriate level. A spell learned through your Magical Secrets feature counts as a bard spell for you, so it can be replaced upon gaining a bard level later. But it must be replaced by a bard spell, according to the rule in the Spellcasting feature.
Which spell scrolls can bards understand—spells from the bard list only, or spells from the bard list plus spells from Magical Secrets? A bard can use any spell scroll that has a bard spell on it—including spells gained from the Magical Secrets feature, which are treated as bard spells for that character.
Sage Advice Compendium, v2.7 r2021