BTW, it's not code legal to have a shut off on the hot side of a water heater.
I always thought that also..but where I work we have 60 buildings with 60 water heaters and they all have a shut off on both sides,.
They are inspected every year.
I guess they are really counting on the PRV..some but not all have expansion tanks.