People often use fancy vocabulary just to show off. I've occasionally heard expressions such as "pompous speech" and "bombast", which might or might not be exactly what you're looking for.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
MustAsk How can you say 'fancy vocabulary' in a formal way?ThanksWilliam has a fancy vocabulary. ~ William has an extensive knowledge of the lexicon.