About an hour before your remark here, Jay Edward correctly observed:
“And Jesus “modified the law” by overruling Moses on divorce and remarriage.“
This change is not incompatible with God’s immutability. God transcends time and space. What God does in one time cannot be determined by what God did in another time; they are both part of a single act that may look contradictory to us.