Sometimes, a somewhat obscure Linux distribution might be just what you're looking for. Is either CachyOS or Nobara the one?
Sudo lets you run any terminal command as another user — hence "substitute user" — but the default and most common use for it ...