How to resolve data_path when inserting keyframe in my situation?
You need .pose in your path, like this:

bpy.data.objects["Rig"].pose.bones['RThigh'].keyframe_insert(data_path='location')


This is because the Edit bones and the Pose bones have separate data while sharing some common attributes.