That's kind of true, but MacOS and Mac OSX are 2 different things. What is based on BSD is the MAC OSX that came out in 2001 AFAIK.
And BSD was interrupted for 2 years because of copyright disputes with AT&T. If that hadn't happened, BSD would be the longest continuous OS today, and probably way more significant than it is.
I don't consider MAC OSX as part of BSD, just like Android isn't part of Linux Desktop, but only uses the Linux kernel. OSX took parts of BSD and shielded it behind a proprietary wall, because the BSD license offer no protection from that. So they become separate projects the moment they enter the Apple domain.
Problem here is when people mix up the use of the word Linux as an OS with Linux the kernel. I am 100% sure OP meant Linux as a Desktop OS like GNU/Linux or something like Free desktop according to freedesktop.org. Using his experience with EndeavorOS as an example.
But you are right, it can be said Unix/BSD has an even longer running time, but it has been somewhat problematic and interrupted because of AT&T and SCO and Novell.
Windows became popular with Windows 3.0 that came out 1990, And the Linux kernel came in 1991, but the first distro which is a better comparison came in 1993.
So Windows had a 3 year advantage.
But that wasn't the more crucial thing, the real advantage was DOS compatibility, which everything legacy ran on. So with Windows people and companies could still run their old DOS programs, they could even run them better than in an old fashioned DOS system, because Windows was brilliant for multitasking DOS programs.