Constant is really not the proper word for what you are calculating. A constant is pi, it is always the same and is static..
The charging constant really is a constant in this case. For 2020 AWD, the calculated capacity of the battery is the min( charging constant * rated miles at 100%, 77.6kWh). (This formula does NOT apply at any other %.) That will align exactly with SMT data unless you have a brand new vehicle and your available energy exceeds 77.6kWh.
It's a constant, but sure, it is occasionally changed by software. It's also what is used by Tesla to calculate and display the "kWh" added to the car on the charging screen (even though that does not represent the true kWh added - since that kWh is derived from the constant and the miles added, and does not measure the actual energy added to the vehicle).
Etc. etc. It's a constant.
It doesn't account for heat losses or the buffer. There are different constant for different vehicle variants, and for different software builds (occasionally, but rare).
The constant is always lower than the rated line by 5Wh/mi (3Wh/km).
The discharge "constant" is not a constant (the one you would calculate on a drive by looking at rated miles used and kWh consumed). That's approximate due to heat losses, battery warming, meter losses, etc.
The BMS constant IS a constant. It is used to calculate the displayed rated miles based on the SMT kWh (CAN bus). You multiply that CAN CAC/ kWh by 0.955 and then divide by the BMS constant to get the displayed rated miles. That's just the simple relationship.
It's not complicated. If you don't want to call it a constant that's fine, but it's really just semantics and is of no consequence.
The rounding error due to it not being in km is certainly there, but small. Call it 158Wh/km or 159Wh/km. And the line is at 161 or 162 Wh/km. For the 19" 2020 AWD/3P+.