The part number for the modules (ballasts) are critical that they are exactly correct, including any letters after the numbers, otherwise they won't function correctly. The letter and/or additional colour code for headlight modules are for specific vehicles and functions, not part revision, so if y ou fit the wrong one, it won't work no matter what.
The headlight itself needs to be the correct part yes but as said above, there may be later superseded parts. Same for the modules but usually less often.
You can swap the modules from one headlight to the other.
Don't rely on part numbers for other peoples cars, their car is not your car and you should get the latest part info from ETKA/PL24 via your VIN or from TPS/Main Dealer via your reg to ensure the information you get is correct and not guesswork.