I know in the Japanese version of the PS4 by default that its:
- X: キャンセル / 戻る [Cancel / Back]
- O: 選択 / 確認 [Select / Confirm]
While in most consoles globally: the X button is used to select or confirm something while the O button is for cancel, basically the sequences are inverted. I know this because I’ve played games on a Japanese PS, even in GTA V (the imputs for either button have been adjusted on that version).


The answers you’re getting are backwards, causally. The trend of Japanese games using the rightward button for confirm and the downward button for cancel started on the Super Nintendo, which the PlayStation copied its controller design from.
The four shapes used on the PlayStation buttons were chosen as pictographs representing their intended uses. So O is O because O was already equivalent to a checkmark in Japan, with X being negatory across cultures. Square was intended for menus or references, shaped like a computer window or sheet of paper. And if I remember right, the upward pointing triangle represented the idea of the top of the player character, suggesting head, suggesting eyes, suggesting camera control in anticipation that 3D games would need a primary button for that. But these other two buttons being prescriptive of function instead of reflective of the function that was already there got roundly ignored. Western games, which already favored the downward button for confirm before the PlayStation, ignored all four intentions.
As for your GTA experience, many games localize their menu controls just the same as localizing their language.
Why, since the days of the Super Nintendo, has Japan favored a rightward confirm while other countries favored downward one? I haven’t the foggiest.