That’s not necessary.
You can keep the brake pressed, move to P, then pull the handbrake.
Even if you don’t press the brake pedal n move to P, such small time frame won’t damage transmission as it’s designed to hold the car in P.
It might be an issue if you’re on an incline, move to P n don’t keep brake pressed or handbrake pulled. With some added load on transmission.