I guess that Lamby means that one should not use "weight" instead of "mass", the two being two very different concepts.
They're very different concepts, but for the sake of the example it doesn't matter which you are measuring, you could equally be measuring the number of atoms in each one if you happen to know it.