Or to use a third location for that “arbiter” with 5 member replica set…
This could be a simple moderator to allow majority if any of the 2 DC’s fails. But you are correct you need 3 different locations to allow automatic failover with a Primary in 2 DC’s
Thanks
Pavel