The following configuration will give the user foo the ability to execute commands as the super user via doas, while disabling the sudo command.
foo
doas
sudo