As seen in Bug 228298, selection of either the low-power or high-performance GPU is working in Safari's Metal backend. When using Metal, the whole-system, OpenGL-based mux to the discrete GPU is unnecessary. This code should be conditionalized on whether the Metal backend is in use.
<rdar://problem/82975791>