The Samsung Galaxy Note Series might be right up your alley! Specifically I world recommend the Galaxy Note 2, Galaxy Note 3, or Galaxy Note 4. All of them have IR blaster, removable batteries, microSD card slot, built-in stylus if you want to draw or take notes (part of the Note series main selling points). The Galaxy Note 2 would be the cheapest phone to get ahold of now. If you get a USA model, Verizon, Sprint T-Mobile doesn't matter, I believe those can have custom ROMs like Lineage OS if you wish. When I used my Note 3 T-Mobile, I had CyanogenMod on mine (before the Lineage OS name change). I am not sure about the international versions. Usually the international versions don't have the same custom ROM or Android development like the USA ones do.
Avoid the Note 5 and above, those have lost out on removable batteries, and there is no microSD card slot on the Note 5, when Samsung tried to alienate their customers. They reversed that change when the Note 8 came out, for good reason. Samsung has also removed the IR blaster on the Galaxy S7 and above phones, and also the Note 7 and above.
As an alternative, the LG G series of phones have the same features, minus the stylus. The G5 I know has IR, Removable battery and SD card slot. I have a LG V20 right now and it is mainly the same thing as a LG G5, except a larger screen and bigger battery with the same features. The G4 I think also has those features too, but I do not know for sure.