In the gym, you mean actually work in the gym , no can do.
I enjoy riding my bicycle, the day I can’t ride it they may as well bury me and my bike. I have to admit , a couple of years ago I bought an electric bike but it has assisted pedal option or I can still just pedal . I still use a regular bicycle as well, a bicycle that when I was 60 I pedaled across Maine and all the way to Connecticut and Rhode Island, then back home .
I won’t workout in a gym but I’ll bicycle as long as I can.