O-ring and gaskets both achieve the same goal but o-rings are always rings with differing sizes where a gasket can be any shape or size.
Do I need a gasket or an O-ring, and how are they different?
Types Of Gasket For Oil, Gas, Petrochemicals and Power Generation - Enerpac Blog
O-rings: materials and surface technology make the difference
How to Choose Your O-Ring for the Ideal Seal
What is the Difference Between Gaskets & Seals?, by FPE Seals
Flange Gaskets Explained - saVRee
Aircraft Seals
Color Coding for Seals - Web Seal Inc. Rochester NY
O‑rings 101: Everything Cars & Motorcycle Owners Should Know - Simplex
Rubber vs Silicone 'O' Rings
Understanding O-rings - UC Components, Inc.