This is exactly why the takeoff clearances say “RNAV xxx, cleared for takeoff”. It’s a last confirmation, right before takeoff, of which departure procedure to use.