When you use teleport, you can roll the targeting roll twice, taking whichever result you prefer. When you use plane shift or shadow walk, you likewise make the roll to determine your destination twice, choosing the better (usually lower) result.