You can do a lot more with the base M2 MBA than an iPad pro base model. Since that is basically the price you paid.I'm a RAM snob for sure. Put 32 GB in my 2015 iMac when it was brand new.
That said - I went against brand and recently purchase a base M2 MBA from BBY for $999 ($789 after trade). This is definitely unusual for me. The purpose of the machine was to replace an iPad as the bedside device for email, web and some streaming. For that it has worked extremely well. I obsessively watch the memory pressure and haven't seen it use any swap. I have a MBP14 and Studio as my "real machines".
I admit this is a strange use case. And I for sure recommend more memory for anyone who intends to use the machine beyond these ridiculously light tasks. But there is a role for an 8 GB Apple Silicon device. Even for a RAM snob like me.
I don't know what you traded and how much you lost but the purchase price is great and a reasonable use case.
I would try your luck at a private sale on a site like Swappa next time. It is a little more work but you usually get considerably more than trade in, specially with Best buy. Just FYI.