Isomorphic Ordinals are Equal/Proof 2

Proof
From No Isomorphism from Woset to Initial Segment, neither $A$ nor $B$ can be an initial segment of the other.

By definition, every element of an ordinal is an initial segment of it.

Hence, neither $A$ nor $B$ can be an element of the other.

By Ordinal Membership is Trichotomy, it follows that $A = B$.