Brazilian here
Serie A scheduling is completely random every season, it’s supposedly to change every season, one you start away from home and other season at home.
As to the Copa do Brasil is a bit more complex, there are some clubs that start at the third round if I’m not mistaken and they are seeded according to their position at the league in the previous year, also its regional championships have impact on the Copa Do Brasil, it’s been awhile since I played fm in the Brazilian league.
The Brazilian scheduling is a completely mess, it is hard to keep up with it lol