Hold laterally, let it run axially
A guide prevents the pipe from moving sideways and lets it slide along its axis. It thus directs thermal expansion in a desired direction instead of blocking it. Depending on its design it restrains laterally only, or additionally holds the pipe down.
That distinguishes it from a sliding support, which only carries, and from an anchor, which restrains everything.