I would run the 6 inch main lines, then drop to the 5 inch size as close to the machine as possible.
The larger main line will have reduced frictional losses compared to the 5 inch line, which will result in more vacuum at the 5 inch port.
You want to get as much airflow as you can at the machine, and that's how you do it.
I use a 5" polyurethane hose for my Hammer B3 and A3-31, super flexible, and relatively low loss for a flex hose. It's pricey, I paid about $6 per foot, worth every penny, especially for the A3 as you have to move the hose frequently.
Remember that your saw requires two hoses, 120mm for below table and 50mm for above table, that negates a 5 inch main line from the start.
I also use my random orbital sander with my Oneida cyclone, I use an adapter for the 2 1/2" line that drops down to the overhead guard for the B3, and open the blast gate for the 5" line so I have enough flow in the cyclone.
Yes it clogs the filter faster, however it's easy to clean and keeps the air in my shop clean.
Regards, Rod.
P.S. Use polyurethane hose for the overhead guard as well, it's very flexible.