Starting Point - Rear Hatch is locked
Step 1. Unlock all four doors - either from inside or with Key FOB
Step 2 Bring the Key FOB around to the back of the car and attempt to open the Hatch - viola it opens as designed
But, if one does not bring the Key FOB around to the back of the car the hatch won’t open even though all four doors are unlocked.
However, if one then opens the Right Rear Door, and even if the Key FOB is not present, the hatch will open.
So, what I can deduce is that the right door is not sending out the signal that it is unlocked unless the door is opened.
Fulll disclosure - a body shop replaced the outside rear door panel, and it was working before they did the work. However, they stated they do not do “wiring”.
Perhaps a wire is shorting in the right rear door? Everything else works in the door, it will even set off the alarm if it is armed, and one rolls down the window, and reaches in and unlocks the door.