Always utilise my method; it is detrimental to place the vehicle in park and rest against the gears. My M4 has a specific sequence: engage the handbrake, wait a few seconds, shift into drive, then turn off the engine, or alternatively, shift into neutral, engage the handbrake, turn off the engine and then press again to shut down. This prevents the parking mechanism from merely resting on the gears, which I have been informed is poor practice.