even if they fit, it is not a great or easy thing to do. both produce heat. both suck water out of the air.
you run the dehumidifier in the room, the slightly warmer air (and over the room area it is less of the impact it is in the tent) is ok. if you exhaust your dehumidifiers air, why run it? the dehumidified air is the warm output air. so that air, the drier slightly warmer air is SO MUCH EASIER TO CONDITION. you can make that air any temp you want with very little effort. then you figure out the dynamics in your tent and find the best place to introduce the air, if you run your fans and exhaust right you dont need much effort to maintain whatever temps you want.
the air conditioner could be put into the tent, mounted in a wall/window and cut a place in the tent so the back of the AC is not in the tent, so the heat goes outside. the AC has a compressor (unless it is a swamp cooler) and removes some of the water from the air. one issue, is where and how it blows that cold air. another is working with that air. if you use a portable type, it will produce heat around the motor and the exhaust has to go somewhere, you lose the room on all sides and it really doesnt work as well as outside the tent.
if you want something in the tent, the humidifier is good.
use a dehumidifier make the room 45% or even 40% then use the ac to condition that room and draw your good air into the tent.