In remote sensing, ground sample distance (GSD) refers to the dimensions of a single pixel in an image as measured on the ground. The calculation of GSD uses the focal length and sensor array dimensions, which are properties of the sensor, as well as the distance between the sensor and the ground at the moment of image capture, normally represented by the altitude of an aircraft or orbital distance of a satellite.
Spatial resolution can be used to describe the dimensions of a pixel relative to any object in focus. So, because some objects can stand quite high above the ground relative to the altitude of a flying craft (i.e., buildings or trees), because images can cover very large areas, and due to variable surface relief, the spatial resolution of objects across an image can deviate from the correctly calculated GSD for that image.
So in short, GSD is a standardized way to describe the resolution of remotely sensed aerial imagery, and is a metric of spatial resolution, while resolution without georeferencing typically refers to solely to the number of pixels in the sensor array array, which is the product of the height and width and usually expressed in megapixels (i.e., 8192 × 5460 = ~45MP). The former describes the size of the smallest detectable object on the ground within a particular image, while the latter describes the level of detail recorded by a particular sensor.