Back in 1996, Hakeem Olajuwon played for USA's Dream Team II in the Summer Olympics in Atlanta as part of his Nigerian national team.
Two things happened.
One, Olajuwon became a U.S. citizen in 1993.
Two, despite a rule forbidding playing for one country and then another, FIBA made exception for Olajuwon to play for USA.
Deandre Ayton is from the Bahamas, has played for his national team, but if the Phoenix Suns center chose to become an U.S. citizen and FIBA made another exception like it did for Olajuwon, he'd be ideal to play for USA in, say, the 2024 Olympics in Paris.