ATOMS: ALMA three-millimeter observations of massive star-forming regions - XII: Fragmentation and multiscale gas kinematics in protoclusters G12.42+0.50 and G19.88-0.53