It is still early to announce it since anything can happen but this is the direction
Both are not good coaches, however, Pioli had a good performance in some games during this season but I think Allegri totally failed in Juventus.
I think one good reason for Juventus to get bad results in this season and lose many chances is their coach Allegri. Otherwise, he could use the opportunity they had during this season to even be the first team in Serie A.
No need to rush to blame the coach, we know there are other factors that have an impact on their performance, as we know that most of the teams in Serie A experience financial problems so there are obstacles to bring in new players, in the transfer window Juventus want to bring Lukaku but failed because there was no barter agreement. Financial problems like this cannot be ignored, sometimes playing with a squad like this can disrupt the coach's plan. The great coach will lose 1/2 of his abilities without the right player.
From a few transfer windows we can see Serie A as one of the leagues that spend the least money well, that is proof that almost all teams in Serie A are experiencing financial problems, if I am the club owner, of course I will consider this factor to evaluate the team's performance and does not give excessive targets to the coach. For next season I think Serie A is still in the same situation they will choose to release some young and expensive players then bring in old and cheap players, we don't know how long this situation will last.