Yeah. The core problem here is that the parser has to disambiguate the
|| operator: is it "anyarray || anyelement" or "anyarray || anyarray"?
<...>
Peeking at the contents of the literal would make the behavior very
unpredictable/data-dependent, so we don't.
Fair enough.
Would a note in that section of the docs pointing out this behavior be worthwhile?