Bash ships with recursive globbing, but it is switched off. That is why people reach for find for things a glob could do.
Enable the globstar option and ** matches all files plus zero or more directories and subdirectories. Follow it with a slash and it only matches directories.
$ shopt -s globstar
$ ls **/*.md
$ wc -l **/*.py
That lists every Markdown file in the current directory and below, with the shell doing the expanding. No find, no quotes, no pipe to xargs.
On macOS the system Bash is version 3.2, which has no globstar, so you need a newer Bash from Homebrew or you use zsh, where **/ works by default. A huge tree makes a huge command line, and at some point you get “argument list too long”; find does not have that limit. Without matches the pattern is passed through literally, so a typo gives you an odd error about a file named **/*.mdd.
Put shopt -s globstar in your ~/.bashrc if you want it in every interactive shell. In a script, switch it on at the top, since a script does not read your rc file.
Further reading: Bash manual: The Shopt Builtin, Bash manual: Pattern Matching, On this site: with extglob, !(*.log) matches everything except your log files, On this site: diff <(cmd1) <(cmd2) compares output without temp files