If 60% people perform better with light theme and 40% dark theme, average is going to be that light theme is superior. This doesn't make dark mode a bad idea.
This is going to appear nitpicky, but the average preference is some average gray, neither dark nor light. The mode is light. That relates back to the fighter jet thing: if you’re going to build a non-adjustable cockpit, build one that fits (within some tolerance) the most number of pilots, not the average on every dimension.
Using the average sometimes works, some times doesn't. Number of arms an average person has is less than 2.
Definitely check out the fighter jet seat problem.