All other things being equal (AOTBE), if you are spinning smoothly then there is no difference. If you stand up and rock the bike side to side, as one does, then a lighter bike would be better than a lighter body. The actual amount of energy spent may not change a great deal, but you will feel the difference and the psychological effect will be greater.
As for rotating weight (AOTBE), lighter wheels/tires will accellerate with less effort, but when going at a steady speed, a change in rotating weight has identical effect as static weight.
When climbing while seated, rotating weight also counts for exactly the same as static body or bike weight.
When cruising on flat ground at a steady speed, a change in weight (body, bike, or wheels) makes zero difference (AOTBE).