30 amps at 240v is 3x the amperage/wattage you have with a 20a 120v feed that is there now, when it comes to 120v devices.
Your air compressor likely won't draw more than 10 amps and you will have two legs of 30 amps with a sub panel. That leaves up to 20 amps on each leg, still double what you have now. If you added a car charger that required a 30 amp breaker and then only needed lights in the garage at that point, it might work.
For now, the sub panel with a 30 amp feed should work. On the other hand, if you have enough power for what you are doing now, then installing the sub panel now and wiring your air compressor for 240v isn't going to gain you anything. If you plan to pull up concrete later, then it makes sense to run large enough conduit to pull whatever you need.
I just changed out my garage from #6 50 amp feed to the sub panel, to #4 copper thhn and 1.5" PVC conduit since my tig welder will pull 104 amps at 230v ( 50% output wasn't good enough, but I don't need the full 460 amp output it is capable of, so #4 will work) and my air compressor pulls 30amps at 240v while running and 169 amps at start up, for a real 5hp motor. The #4 copper was free, otherwise I would have used #2.