Office selection rules differ by firm and recruiting channel. Some applications let you rank multiple preferences; others route you through a primary office.
Follow the application form rather than creating separate duplicate applications unless the firm explicitly tells you to do so.
If you have two legitimate locations, explain the connection to each when relevant. Geographic flexibility can help, but your preferences should still look credible and intentional.