You can certainly have the same vlan on both switches and connect them via a trunk port as indicated.
You can have a layer 3 irb interface in the same vlan on both switches.
But you cannot have the SAME ip address on both irb interfaces, this will create a duplicate ip address conflict.