Linux is a Unix-like operating system (it does not stem from the OG Unix of the late 60s/early 70s)
macOS is a (actual) Unix operating system.
(Note that this isn't a comment on the quality of these operating systems—both Linux and macOS have their good parts and their bad parts; and I use and like both.)