Discovery only got 13 episodes per season because of the Paramount slash Netflix deal. Netflix was paying the majority of the production costs, and all of their streaming series at the time Discovery started production were 13 episodes long. Netflix even agreed to add one episode to season 2 for a total of 14 episodes because of the producers felt they needed one episode more to wrap up things before the final battle episode.I've thought they should switch the SNW (10) and Discovery (13) episode counts. Not even about the quality, I just think it fits the style of show better. Though apparently DIS is already switching to 10...
When Paramount+ bought out the Netflix part of the deal after season 4 was produced, that's why season 5 only has 10 episodes because that's what Paramount+ streaming series got per season.