Your entry guard is the relay your Tor client connects to first, every time, for a long stretch. It's the only relay in the network that sees your real IP address. "Entry guard" describes that role in your client; "guard relay" usually refers to relays carrying the Guard flag that are eligible for it. In practice people use the terms interchangeably.

Why stick with one? If you chose a fresh first hop for every circuit, then over weeks you'd almost certainly hit a malicious relay at the entry while another one watched the exit, and a correlation attack would succeed. Pinning a guard flips the odds: either your guard is honest and you're protected for months, or it isn't and you're exposed, but at least you aren't rolling the dice every ten minutes.

Tor keeps a primary guard for a couple of months or more before rotating, with a few backups in case it's unreachable. The selection logic lives in a file called state in your Tor data directory. Tails, being amnesic, picks a new guard each boot, which is a known trade-off rather than a bug.

Bridge users have their bridge act as the entry guard instead.