That can be a bit tricky as the file /etc/machine-id seems to have been modified. Therefore the normal procedure for removing old entries won’t work, and the sequence of the entries is purely in alphabetical order. Because the old value of machine-id occurs earlier in the alphabet, the entries for that id occurs first in the boot order.
So what needs to be done is to remove the oldest files from the directory /boot/loader/entries/ using the rm command.
This command was an error and has been for more than 4 release versions of Fedora.
The correct command would have been grub2-mkconfig -o /boot/grub2/grub.cfg
The command you quoted overwrites the default pointer file at that location (which redirects grub to the file at /boot/grub2/grub.cfg) and will result is the system never seeing new kernel updates.