There are a few things to consider.
For optimal motor learning you would need to perform the same exercise, not a different version.
Using different versions can help in other regards but the effect on motor learning will be less important.
Another thing to consider is the level of stress of adding the other big lift on the training day. Granted, with the athletes I’m training, we train the whole body every workout. So we do have squats and hip hinge on the same workouts and they recover fine. BUT other variables are kept down to maximize recovery (e.g. only 4 exercises per session, sometimes 3, 3 strength workouts per week only, long rest intervals, fairly low volume of work).