Classical Poincaré and Galilei invariant Hamiltonian two-particle interactions with commuting position variables