Let's take two different kinds of gases with very different masses of the molecules, but we have the same number of moles, we have the same volume, we have the same temperature and therefore, we must have the same pressure, according to the ideal-gas law. 