Yum default behaviour would be (AFAIK) to install version 23.0 as it would report 21.0 already installed. And find nothing to do.
Suppose we're talking about a package which is not part of the base install. Or that we're talking about Fedora XFCE whose default browser is not Firefox :)