The Samaritans during the time of Jesus are often depicted as being a cult or part pagan. This may have come from the account of their origin found in 2 Kings 17: 24-41. But genetic studies "revealed that the Samaritans were closely related to Cohanim [priests]. This result supports the position of the Samaritans that they are descendants from the tribes of Israel dating to before the Assyrian exile in 722-720 BCE.
"https://pubmed.ncbi.nlm.nih.gov/25079122/
The conflict between the Samaritans and the other Israelites in Judea stems primarily from the Samaritan's rejection of the authority of the Temple in Jerusalem. They believed that Isaac was bound on Mt. Gerizim and that is where the temple should be.
Like the Sadducees, the Samaritans accepted the books of Moses but did not recognize the rest of the Tanach.
Jesus was sympathetic to the Samaritans and did not denounce their doctrine. But unlike them, Jesus recognized the authority of the Tanach, including the prophets and the Psalms.