Boyd and Raylan are going to unite against Garret Dillahunt and them. I'm not even sure we see Raylan vs. Boyd. The show has dwelled on insider vs. outsider as much as it has dwelled on good vs. bad. The Bennetts and Limehouse holler exist in close knit groups because they have to survive. The fights against Detriot and Florida, union organizing in the mines, Arlo and Boyd's dad getting their heads kicked in by company gun thugs. This is where Raylan and Boyd are the same - they are both Harlan insiders.
I could see Raylan sacrificing himself to protect Harlan from outsiders. Not in an overt corny way. But with the same results.
Just to clarify what I am saying here, Sheriff vs Outlaw is a regular part of the game. Raylan knows it and Boyd knows it. Boyd robs a bank and Raylan chases him. That's a normal part of the community and they both accept it.
An outside force coming into destroy that community is on a whole different level. And sometimes circumstances can find the sheriff and the outlaw on the same side in the fight to save their community. Almost like what we saw in Deadwood (also with Timothy Olyphant and Garrett Dillahunt). We saw the traditional good guy and the traditional bad guy forced to team up in the face of an existential threat.