Our first boat was a T22 - we loved her. As we got older we wanted more room. Moved to a T28 (exactly like a T22 only bigger.) Now an Irwin 34.
A friend of our sailed his T22 from Saint John NB, Canada to the Caribbean and back. A T22 will most likely take way more punishment than you ever will.
If you are young enough, go for it. ( I turn 67 on Saturday)