One of the notable exceptions is Panama, where the Pacific coast is primarily on its southern border.
The first Europeans to see the Pacific Ocean were able to do so by crossing the narrow Isthmus of Panama.
Only four countries in South America have a Pacific coast as a part (or all) of their border.
Countries and territories on the eastern, north-eastern, and south-eastern sides of Asia have a Pacific coast as a part (or all) of their border.
Except the Ashmore and Cartier Islands and the Australian Indian Ocean Territories, all the other countries and territories in Oceania have their entire border surrounded by the Pacific Ocean.