If I use a VPN to connect from my local network to a different network location and both networks have devices with the same local IP address, where do I get routed?

This thought came to me the other day but I don’t have the ability to test it, so I’ll ask. Please excuse me if i don’t use the right networking terminology.

I have a homelab with some services exposed to the internet through cloudflare tunnels, and some other devices that are only accessible from the network. If I’m out of the house, like at work, and I want to connect to one of those local-only services, I fire up wireguard, connect to my home network, and i can navigate directly to my home-local services from my workplace network. All I need to do is navigate to the same local URL I’d use at home, something like 192.168.1.20

My question is, what happens if my workplace uses the same IP range and ALSO has a device on it’s own local network at 192.168.1.20? I understand that if I’m not connected to my wireguard VPN then of course I’d just access the device on the workplace local network, but what happens once I’m connected to the VPN? Is there a routing priority for local vs VPN?