It really does not matter.
Of course, lower is better at the same speed.
But higher ram speeds come with higher latency.
For gaming, the first consideration is to buy sufficient ram for what you will ever need on that motherboard.
Do not plan on ever trying to add more ram later.
It is not guaranteed to work.
You want documented ram compatibility. This is particularly important for ryzen which can be picky.
If you should ever have a problem, you want supported ram.
Otherwise, you risk a finger pointing battle between the ram and motherboard support sites, claiming "not my problem".
One place to check is your motherboards web site.
Look for the ram QVL list. It lists all of the ram kits that have been tested with that particular...