I'm not sure if anyone here grew up with
Doraemon, but the way I often see Dan compared to Yamaoka is like how I see Dekisugi in
Doraemon compared to Nobita in the same manga.
(Here's Dekisugi if y'all are curious)
In short:
Dekisugi: Ace in the school, the perfect student, subject of awe by everyone (like Dan)
Nobita: A total loser, a wimp, always ends up being the subject of ridicule by everyone (like Yamaoka)
Although I must point out that Dekisugi is genuinely a nice kid with no bad bone at all, while Dan is not so much, as we see in this chapter and going forward (though nowhere near as bad as the others like Kanegami, for example).