Well. . . yeah. The game makes it clear that Ganondorf manipulated you into opening the door for him, but then again Ganon was searching for the other stones. He likely would have found some way to find them if Link didn't walk into his trap.
but what if link obtained the stones but never opened the door
but what if link obtained the stones but never opened the door
but what if link obtained the stones but never opened the door
but what if link obtained the stones but never opened the door