What this suffix does
The suffix -er (or -or in some cases) takes a verb and creates the noun that names the person or thing performing that action. From "teach" you get "teacher"; from "drive" you get "driver"; from "play" you get "player".
It is one of the most productive suffixes in English for naming professions, roles, and tools. Know the verb and you almost always get the agent noun for free: verb + er.
-er vs -or
Both -er and -or mean the same thing: the one who does the action. The choice between them mostly follows the word's origin.
Native English verbs tend to take -er: teacher, driver, worker, singer.
Verbs with Latin or French roots tend to take -or: actor, director, supervisor, professor.
When in doubt, -er is the safe default for new words. When you see -or, it usually signals a more formal or Latin-derived word.
-er also names things, not just people
-er does not always name a person. It also names tools or machines that perform a function:
printer = the thing that prints
blender = the thing that blends
dryer = the thing that dries
When you see a -er word that is not a person, ask yourself: what verb is hiding here? blend → blender: the thing that blends.