Also, repositories can be sharded, and complete shards can be packed, which can result in some space savings. Sharding is on by default now for new repositories, but packing must be done manually.
So to answer your question, yes, there are a number of normal situations that could result in two repositories having the same contents but unequal sizes.