You can achieve this effect by using SVG filters with <feComposite> and the xor operator. Here's how to modify your code:
<svg width="900" height="300" viewBox="0 0 900 300">
<defs>
<filter id="xorFilter">
<!-- Create the back text (stroke only) -->
<feFlood flood-color="black" result="strokeColor"/>
<feComposite in="strokeColor" in2="SourceGraphic" operator="in" result="backText"/>
<!-- Create the front text -->
<feOffset in="SourceGraphic" dx="0" dy="0" result="frontText"/>
<!-- Apply XOR operation -->
<feComposite in="backText" in2="frontText" operator="xor" result="xorResult"/>
</filter>
</defs>
<!-- Single text element with the filter applied -->
<text x="50" y="200" stroke="black" stroke-width="20" fill="white"
stroke-linejoin="round" filter="url(#xorFilter)">Old Amsterdam</text>
</svg>
However, there's a simpler approach that might work better for your specific case. Since you want to exclude the front text from the back text, you can use a single text element with a filter that creates the hollow effect:
<svg width="900" height="300" viewBox="0 0 900 300">
<defs>
<filter id="hollowText">
<!-- Create the stroke -->
<feMorphology operator="dilate" radius="10" result="thick"/>
<feFlood flood-color="black" result="strokeColor"/>
<feComposite in="strokeColor" in2="thick" operator="in" result="stroke"/>
<!-- Subtract the original text from the stroke -->
<feComposite in="stroke" in2="SourceGraphic" operator="xor" result="hollow"/>
</filter>
</defs>
<text x="50" y="200" fill="white" filter="url(#hollowText)">Old Amsterdam</text>
</svg>
The xor operator in <feComposite> works by showing only the parts where the two inputs don't overlap - essentially creating a "difference" between the two shapes. This creates the hollow text effect you're looking for, where the inner part of the stroke is cut out by the text shape itself.