Example sentence #2 contains contradictory levels of formality.
"Such" is a formal word, especially when it is used as a determiner. It is used in formal contexts, such as textbooks and contracts. "Such as" is not as formal as the use of "such" in the example sentence.
Contractions are informal.
"Stupid things" is an informal phrase.