Our kittens learned to hunt very quickly and would bring animals into the house. Lots of lizards, mice, and birds. We got tired of burying dead animals and vacuuming up feathers. Then one of our cats got into a fight and got bitten. The vets think that the bite must have punctured a vein or artery in their shoulder, which caused a huge hematoma that swelled up their chest. They had severe anemia and almost died from internal bleeding, so they had to give them a blood transfusion. They didn't have any cat blood available, so they used dog blood instead. (Apparently that's quite common!) He's almost fully recovered now, but still has a limp that is slowly getting better. The vet bills ended up being over $6,000. Fortunately we had pet insurance, so we only had to pay $1,300.
So we don't let them outside anymore. We were surprised to see that they don't seem to mind too much. They're not begging to go outside and they still seem perfectly happy. We've put a little bit of grass on an internal balcony, and we might try to build a catio enclosure so they can still have a little area to go outside. Maybe some netting like this: https://catnets.co.nz
EDIT: Cat tax: https://imgur.com/a/umQpcvK
This seems like unfounded speculation. Why would they understand doors but not inside/outside?
Which is why it's best to keep them indoors or perhaps have a catio so they can experience the outdoors without impacting the local wildlife. It's also better for the cats as indoor cats tend to live longer.