Vector3 is actually of the native vector type - this is a standalone data type in the language.
You can see this by checking in the console with type:

In the Luau VM, we can see the handler for comparisons under the any of the EQ opcodes, such as LOP_JUMPIFNOTEQ.
but in short, if we look at this section:
case LUA_TVECTOR:
pc += !luai_veceq(vvalue(ra), vvalue(rb)) ? LUAU_INSN_D(insn) : 1;
LUAU_ASSERT(unsigned(pc - cl->l.p->code) < unsigned(cl->l.p->sizecode));
VM_NEXT();
this is basically saying, “if we’re comparing two vectors, call the function luai_veceq which will check if they are equal. If they are, go to the block of code for that case, if they aren’t then go somewhere else.”
Now, if we go to that function, we can see this line:
return a[0] == b[0] && a[1] == b[1] && a[2] == b[2];
now what this does is compare the x, y and z of both vectors. If they all match, then it’ll return true. It’s doing this:
v1.x == v2.x and v1.y == v2.y and v1.z == v2.z
This is why when you put in the command bar:
print(Vector3.new(1, 1, 1) == Vector3.new(1, 1, 1))
you get true.
I hope this helps! Any questions please ask.