Don't waste your money on the Intel Macs. Make sure you are getting an ARM Mac (M1, M2, or M3). If you need to, wait a little to save up. It will be worth the wait. The Intel systems just are no comparison. I just had a customer struggling with a 2018. I took a 60 second sample 4k file, added a title frame, a couple fades, and then exported to 1920x1080. The customer's 2018 took 2 minutes, 24.8 seconds to export the project. My reference M2 mini took 19.91 seconds. This is 7x faster! Considering that more than half your job will likely be transcoding, the M-class is the clear winner.
As Phil0124 noted, RAM is key. But don't forget about storage. You have two options. Either get large internal storage (costly), or fast external storage. Fast is the key. Go USB-C/Thunderbolt 3 storage, ssd if possible. Rotational is too slow these days. The external storage is also good if you are going to have a ton of projects. Simply put the project on a shelf when you are done with the project.
Also, for any computer you are buying, make sure you are spec'ing it for three years from now. Remember, you want the machine to last. This means three more versions of macOS, three more versions of Adobe CC, three more versions of everything. Be smart. Buy for the future, not the present or the past.
Hope this is helps.