Well...
The ID.4s WLTP range (522km) is better than the Model Y (505km). And we know from the Taycan that the EPA numbers are sometimes very questionable. The attached image is from a VW investor call. See...
As of right now Tesla doesn't have battery cell technology in production (outside of a pilot line). They source all their batteries cells from partners (originally just Panasonic, nowadays from LG and CATL, too) that sell to others as well.