No, you don't avoid it. You just reduce the wait time in line.
It's not just about the queues. Even with first class you still need to get body-scans, pat-downs, get your hand luggage searched, perhaps take off shoes and belt, and throw away the water bottle you just purchased inside the airport and the toothpaste you forgot to move from hand luggage to checked-in.
That has become so normalized that most people just shrug, but it's a quite humiliating treatment and most of it is meaningless beyond the mere appearance of security.