GRB 211227A as a Peculiar Long Gamma-Ray Burst from a Compact Star Merger