Mayday is immediate threat to life. Pan = emergency is one step below that which can be upgraded or downgraded if necessary.
When I had smoke in the cockpit after take off, we declared an emergency. ATC told everyone to go around and we made a very neat, tight low level circuit and landed. Couldn't have been simpler thanks to ATC.