Functions I have known

Why shell functions beat aliases for anything beyond simple substitution, with examples I use for git, docker, kubernetes, and JSON