Some have found data suggesting it is comparable to a motorcycle.
However, motorcycle accidents are mostly
caused by car drivers, whereas some 99.x% of general aviation accidents involve no other vehicle.
On top of that, the # of half blind car drivers has vastly increased since the 1970s when I was on 2 wheels. MC is now a decidedly dodgy proposition, but again mostly due to car drivers.
The risk in flying is almost entirely down to the pilot and, in fixed wing at least, very few serious accidents result from crap maintenance (which is just as well since crap maintenance is endemic

).
If flying was as dangerous as MC (as the risk per mile data superficially suggests) I would never do it. I do it because most of the risk is down to me.