No two rifles shoot the same. When they do, go buy a lottery ticket.
Thats why we reload - to tailor loads to a specific rifle to obtain the best accuracy - performance depending on the use of the load. To obtain a better group - get good components and develop your load for the barrel you have.
Choosing a powder is made for a cartridge not barrel length, up to a point.. in shorter barrel you might want the fastest of the powder listed for that bullet - powder charge, and longer barrel the slowest, but again not a fixed rule.
Usually pick up the powder the data for that cartridge that show, the best velocity for the bullet you use.