The statement "the number of calories consumed must equal the number of calories burned" is false.
While it is true that for weight maintenance, the number of calories consumed should equal the number of calories burned, this is not a requirement in general. In order to lose weight, one must consume fewer calories than they burn, and to gain weight, one must consume more calories than they burn.