I think, there is no such repair task.
When doing repairs on the roadside, the bike can be put on its side. Wheel removal and insertion doesn't require the bike to be upside down. I have removed and installed studded tire wheels many times, and that task doesn't require the bike to be upside down.
Testing the drivetrain such as after rear derailleur adjustments, or testing the brakes obviously requires the wheel to be away from the ground. However, using brake levers is cumbersome if the bike is upside down. Also, a repair stand is better for all of these tasks.
If you don't have a repair stand, you can install a kickstand for your bike. Then all you need to do to raise the rear wheel from the ground is extend the kickstand and tilt the bike slightly towards the kickstand. Perfect for rear brake and rear derailleur adjustments.
I have assembled a complete bike from parts, without a repair stand. I didn't need to ever put the bike upside down.
If you really do put the bike upside down, please ensure that nothing on the handlebars is damaged. A speedometer can be damaged. A speedometer mount can be damaged. A bell can be damaged. Also, as you noted, hydraulic disc brakes don't like the bike being upside down, air can be introduced there when upside down.