Motivated by concerns over the foundational issues vis-a-vis category theory. What is the essential useful characteristic of sets that is lost when instead considering proper classes?
Referring to Hungerford's Algebra, it would seem that the notions of functions and surjection/injection carry over more or less identically. So what precisely is lost when we consider, for example, categories that are not locally small?
I understand totally the necessity of defining proper classes, that is to defined sets that would otherwise be self-referential in terms of membership.
Classes are essentially shorthands for formulas. You can work with a class, with some care, if you can write it as $\{x:\phi(x)\}$. So clases have to be rather precisely specified.
Now, there a lot of things you can do with sets you cannot do with classes:
Suppose you have two classes $\{x:\phi(x)\}$ and $\{y:\psi(y)\}$. You can also have a formula $F(x,y)$ such that for each $x$ such that $\phi(x)$ there is a unique $y$ such that $\psi(y)$ and $F(x,y)$. Essentially, $F$ is a class function between the given two classes. You can also express that $F$ is surjective. But this does of course not imply that there is a formula $G$ such that for all $y$ with $\psi(y)$ there is a unique $x$ with $\phi(x)$ and such that $F(x,y)$. So with classes, you can essentially have a surjection without a right inverse.
Suppose you have again two classes $\{x:\phi(x)\}$ and $\{x:\psi(x)\}$. Then you can form the intersection $\{x:(\phi\wedge\psi)(x)\}$. But if you have a sequence of classes parametrized by $n$ of the form $\{x:\phi_n(x)\}$, you cannot form their intersection, $\{x:(\phi_1\wedge\phi_2\wedge\ldots)(x)\}$ since the usual logic does not allow for infinite conjunctions $\phi_1\wedge\phi_2\wedge\ldots$
So there are a lot of things one can do with classes and one can make reasonable statements about categories that are not locally small. But it requires a deeper understanding of logic and set theory and there are important limitations. A very terse but good introduction to handling classes is given in the new edition of Kunen's Set theory.