Hello,
As the TO252 is much smaller as the TO220, the cooling will be less.
In the datasheet a temperature rise per watt of 45 C/W is given:
Here is also a comparisson between the package sizes:
https://e2e.ti.com/blogs_/b/powerhouse/archive/2015/08/27/overview-of-voltage-regulator-packaging...