The Exodus 20 and Deuteronomy 5 versions are quite similar. It is like the Philonic, except that God's introduction of himself is the first commandment, the Philonic first and second are the Jewish second, and nos. 3 through 10 are the same. Thus the Catholics use Deuteronomy to emphasize the importance of not coveting your neighbor's wife by making a separate commandment of it. The two versions offer different reasons for keeping the Sabbath.
Any answer leads to trouble of one sort or another.
All such questions are mere quibbles, though, compared with Exodus 34. The Commandments of Exodus 34 are mostly, though not completely, different. I must thank Ms. Gaylor especially, since reading her book was the first time I became aware of this situation. Dennis McKinsey, who publishes Biblical Errancy, urges that we be cautious. And he wrote on the tablets the words of the covenant, the ten commandments.