The macOS dock distinguishes itself aesthetically precisely by not being a taskbar with other functions and features. Every other taskbar implementation, even the ones that use icons (an approach that predates the Apple dock), sees it as important to not waste space and provide indicators and useful widgets on the same bar.
The "dock" approach is distinct in that it contains only large friendly application buttons, and doesn't use the full width of the screen. The thin taskbars common to other operating systems which also frequently use icons to switch applications shouldn't be considered docks, if for no other reason than that they predate Apple's approach. As you pointed out in your other comment, clicking on one of the icons doesn't even do the same thing in Windows as on macOS, and the task switcher part of the taskbar is the most comparable thing between taskbars and Apple's dock.
It’s true the Windows taskbar also does other things. But that’s not really my point. Gnome 2 didn’t have a component that acted like a dock.
Maybe, though it was probably inspired by a merger of the dock, which was not introduced by Apple but by NeXT in NeXTstep 1.0 (well, before 1.0, really), and the graphical shell menu/status bar in MacOS which MacOS had long before it had a dock, which it didn't get until OSX; the Windows task bar approximately merges those functions (but doesn't also serve as an application menu bar the way the MacOS one does.)
Perhaps by "dock" you are referring to using an icon-based taskbar rather than one that also contains the window title? That's not what most people mean by a dock.
[1] https://cdn.windowsreport.com/wp-content/uploads/2018/11/win...
[2] https://kde.org/announcements/plasma/5/5.21.0/plasma-dark.we...
[3] I don't think it would be fair at all to call ChromeOS's taskbar a dock. The icons are centered like a dock, but they're in a full-width bar that also contains many other buttons and indicators. https://upload.wikimedia.org/wikipedia/en/c/c9/A_screenshot_...
[4] https://www.gnome.org/wp-content/uploads/2021/03/overview.pn...