This card only looks at permanents, not spells on the stack. So it is possible to cast two instances of a spell onto the stack.

Artwork
Loading artwork…
Cornered Market
Mercadian Masques · #14 · EN
Nonfoil—Foil—
Card rules
Players can't cast spells with the same name as a nontoken permanent.
Players can't play nonbasic lands with the same name as a nontoken permanent.
Don't step on the livelihood of other vendors, or they may step on you. —Mercadian saying
Rare · Illustrated by Edward P. Beard, Jr.
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker Legal
PreDH Legal
Premodern Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Modern Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
Pioneer Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Cornered Market does not prevent effects which put a card onto the battlefield. It only stops people from casting.