There are almost as many grips as there are players...Obviously the main thing to avoid is the grip influencing the straight line of the cue.
I think there are three main philosophies here:
1. Disconnecting by holding the cue so loosely that the grip has little chance to twist the cue. The most extreme example being the reverse slip where the cue actually slides inside the hand. The problem for me is that when I get nervous I tense up. So this tends to make me grip the cue, thus destroying this technique.
2. Controlling the cue by holding it more firmly. Here we create a groove or track for the cue to lie in inside of the hand. I like to think of this as creating a "wall" on one side of the cue or the other. When the thumb is pointing straight down, it is the wall. When the back of the hand is pointing straight down, the palm or base of the fingers form a wall. I like the idea of the cue being supported as much as possible, so I usually use the one where the back of the hand is pointing almost straight downwards. The cue then rides against the palm and very base of the fingers, taking the fingers out of the equation more or less as far as sideways movement is concerned. They are still active in the stroke, but they don't have as much of a chance to introduce twisting. This technique helped me tremendously with getting rid of the panic twist and gave me confidence to use my wrist more. I get to take advantage of the pinky's great leverage for a free extra boost upon the closing of the hand, but with the wall supporting the cue, it's not going sideways.
3. Hybrid: The toughest grip to master IMO is the one where the wrist is in the neutral position. There isn't a wall being formed, but rather the cue is being held at a narrow point and the supported as the swing impacts the ball. To me at least this requires a very complex movement of the fingers to avoid twisting. The grip is then held primarily with the webbing between the thumb and index and the others wrap around as the cue strikes. I've never fully mastered this and I've given up on it. This is actually the primary recommended grip in most instructional videos and sounds the best on paper, with the wrist neutral the arm can move more freely. But if you're prone to nervous clenching of muscles, this grip often breaks down. It looks beautiful when done right, but my fingers are not suited for it, I think. A lot of people who use this don't close the hand fully, but rather use only the index and middle finger, keeping the ring and pinky more or less off the cue. There is a good reason for that. That final closing tends to bring a lot of power, but the pinky often pulls the cue off line. That's why I prefer the controlling the cue approach. It lets me use the pinky, yet with the cue supported, it doesn't get as much of a chance to destroy the straight line.
This is an interesting subject, and there are lots of different opinions on what is the best grip. I think the important thing is to understand how your hands and wrist work and build around that. For instance I have a small hand and very long fingers, with the two middle fingers being a lot longer than the others. For someone with shorter fingers of more equal length, their requirements become much different.