This is really a Grafana question rather than a Prometheus question.
Grafana lets you extract the value of a label from an arbitrary PromQL expression result using a regex, e.g.
The regex is matching against the entire metric line, i.e.
metricname{label1="a",label2="b"} value timestamp
To break the regex down:
.* match any zero or more characters at start
ifName=" match this text literally (ifName= and opening quote)
( start capture group
[^"]+ match one or more characters which are not double quote
) end capture group
" match literal closing quote
.* match any zero or more characters at end
Change this to use node instead of ifName.
Then you should be able to write your "or" condition in the PromQL part, e.g.
query_result(foo{cluster="A"} or foo{cluster="B",node=~"MDM-.*"})