The clock and the weight of the noise. Raccoons feed mainly at night, so heavy, slow thumping, dragging, and walking sounds across the ceiling after dark, often right around dusk when they leave and again before dawn when they return, point to a raccoon. The DEC lists an adult raccoon at an average of 15 pounds, and it sounds like it. Gray squirrels are daytime animals: fast scampering and rolling at first light and again in the late afternoon. Mice are light, constant scratching at night in a wall or a ceiling corner.
In spring there is a second sound that settles it. The DEC describes young raccoons announcing themselves with mewing, twittering, or crying sounds, and the University of Nebraska extension lists chirping along with thumping as the signature raccoon noise from a chimney. If you hear what sounds like birds chattering inside the attic in April or May, you have a litter, and nothing should be sealed.
The physical evidence is bigger too. A raccoon opening is a single hole with fur caught on the edges, usually with a torn soffit panel, a pushed-in roof vent, or ripped shingles around it, where a squirrel leaves a chewed hole with fresh light wood at the edge. Raccoons flatten a wide area of insulation and often pick one corner as a latrine, so a pile of droppings in one spot is a raccoon tell. The University of Nebraska notes smudge marks along downspouts where the animal climbs. If you are still unsure, There's a raccoon in my attic, what do I do has the short version, and the squirrels in the attic guide covers the daytime animal.