https://prometheus.io/docs/prometheus/latest/querying/operators/#many-to-one-and-one-to-many-vector-matches
(count by (instance)(node_cpu_seconds_total{mode="idle"})) has labels like:
{instance="nuc1"}
{instance="nuc2"}
node_load5 has labels like:
node_load5{instance="nuc1", job="node"}
node_load5{instance="nuc2", job="node"}
Since there's a one-to-one correspondence, you can simply do
node_load5 > on (instance) (count by (instance)(node_cpu_seconds_total{mode="idle"}))
If there were multiple values on the right for the same instance (a 1:N relationship), then you could do:
node_load5 > on (instance) group_right() (count by (instance)(node_cpu_seconds_total{mode="idle"}))