Why not a simple switch, not unlike on SD cards (but implemented on the device, not host/reader, and enforced by said device)?
Though yes, two USB ports would definitely work; it's just that the concept might be better served by providing two different connectors (e.g. USB-A & USB-C), as is common nowadays.