The kernel is not the problem with Windows. Arguably the NT kernel is better in design and cleaner in implementation than Linux.
The issue with Windows is 30+ years of legacy cruft and APIs that are all bundled in, mostly in user-space. Needed for backward compatibility which how Microsoft won and keeps the “enterprise” market.