Ground state and hidden symmetry of magic-angle graphene at even integer filling