nix offloads any packages it sees to build machine but that machine is not capable for building some derivations due to memory constraints. Is there a way to force some derivations to not be offloaded to any build machines (or offloaded to one specific machine)?
Probably a workaround is simply to removenix.buildMachines/nix.conf directives for remote builders, nix-build the derivation you want, then re-enable remote builders. A different approach might be to start the build job on your preferred builder and serve it via a cache.
Maybe someone else has a better way to approach this.
If I were really inclined to filter on a derivation level I could also add preferLocalBuild, i.e., via overlay or override, but that can be a footgun, when I basically forget about that and circumstances change aka sounds like a design flaw.