Emulating a specific USB device

Then I think teensy is the way to go. Do with Teensy 4.1 so you have a lot of pins to start with already. Then you could use a MEGA2560 if you want, but make sure you have a logic level shifter so the 3.3V Teensy can talk with the 5V MEGA2560.