Larry the Lobster does not appear in the episode where Gary chooses Patrick over SpongeBob. In that episode, Gary favors Patrick because he offers a treat and a place to sleep.
The episode you're likely thinking of is "The Original Fry Cook," where Gary chooses Patrick after SpongeBob forgets to feed him. However, Larry isn't a character in that episode either.
It's important to remember that Larry the Lobster is a recurring character in SpongeBob SquarePants, but he doesn't appear in every episode.