Mattel's deal with Warner Bros. Discovery to make toys related to the DC brand could fuel more toy sales and help Mattel compete with rivals such as Hasbro.