It might be a notorious example but artists do take those risks
https://www.billboard.com/lists/kanye-west-ye-sampling-lawsu... (not to mention the many artists that release music without licensing from the beat producers, which still happens regularly)