

Thats pretty similar to what 3e (and iirc older) counterspell did. You had to cast the same spell in reverse to counter a spell. So to counter spell a fireball, you had to have a fireball prepared and “counterspell cast” your fireball. That said, there was some action economy problems in 3e that made it not worth it (you had to use an action to ‘ready’ a counterspell on a specific target, when the target cast a spell, you had to roll to identify the spell, and if they cast a spell you didnt know or have prepared, you were out of luck)
well, to be fair, almost no one used counterspells back then because of the many failure points, clunkiness, and the high chance of it being a complete waste of your turn. Better to just cast your own fireball first.