At least you've discovered Zsh and hopefully its significant improvements over Bash. The only Bash benefit is readarray/mapfile, Z Shell is better in just about every other way.
¹ https://zsh.sourceforge.io/Doc/Release/Zsh-Modules.html#The-...
lines=( "${(@f)$(my_command)}" )
or lines=( "${(@f)$(<my_file)}" )
which IMO is a little less nice than using a builtin with a name like "readarray".But this is cool too.