There is something to be said about Logan's character, when looked at through the lense of the various stereotypical archetypes the show loves to use.
For example, Roman is a dramatic theater kid, Virgil is emo, and Patton is a happy go lucky dad character.
And if course, Logan is a nerd. A teacher character. But there is an emphasis on the nerd thing.
The "nerd" characters often depicted in film and television don't actually have much in common with Logan. Stereotypical nerd characters are usually small, awkward, unsure of themselves, weak, picked on, unassuming, and easy to mock.
He's confident, he enjoys leadership, he stands up for himself, he's extremely capable, proud, irritable, strong, serious, prone to anger, and really just not at all like a typical "nerd"
It's true he has a love for learning and knowledge, but that's really all he truly has in common with the nerd archetype.
He actually has far more in common with the tortured genius character type. While not as official as some other archetypes, we can see many examples in mainstream media
BBC's Sherlock, Walter white, Bruce Wayne, Nate Ford, fcking Hamilton, the list goes on. They are characterized by their intelligence, their inability to confront their own emotions, their leadership, their drive, their capabilities, and their cold nature that drives others away.
Logan surely has far more in common with these characters, and even tells us that directly. His favorite character is Sherlock Holmes, and we don't exactly see Sherlock as a nerd exactly.