The IRA discount only applies to the US market, where AFAIK BYD is not even present, right? So it doesn't really explain why Tesla is trailing behind BYD globally.
Or maybe your point is "Tesla is not helped by its government as much as BYD is"? Which could be a fair point.