Which plane is which?+−
G17 is the XY plane, G18 the XZ and G19 the YZ. The quick way to remember it is to look at the axis that is missing: that is the axis the canned cycles feed down, and the one you use as the viewpoint to decide the direction of arcs.
Which plane does a lathe use?+−
G18, the XZ plane, because those are the two axes the machine has. It is usually active by default at power up, although well written programs declare it in the header anyway, above all on lathes with a Y axis or live tooling.
Why change plane on a milling machine?+−
To cut arcs that are not in XY: a corner radius on an edge, a turned profile machined on a mill, or work with a right angle head where the tool attacks from the side. Outside those cases, a milling machine lives in G17 from start to finish.
Does the plane affect drilling cycles?+−
Yes, a great deal: the cycle feeds down the axis perpendicular to the active plane. With G17 it drills in Z, which is what you want. With an inherited G19 it would try to do it in X, and depending on the machine that is either an alarm or a crash.
Do I have to write G17 if it is already active at power up?+−
Yes. The power up state is a builder parameter, and on top of that the previous program may have left another plane set. Writing it in the safety header block, next to G40, G49 and G80, costs five characters and takes all of that uncertainty away.