An apparatus includes a body, a shaft assembly, an end effector, and a control module. The shaft assembly extends distally from the body and includes an acoustic waveguide. The waveguide is configured to acoustically couple with an ultrasonic transducer. The end effector includes an ultrasonic blade, a clamp arm, an electrode, and a sensor. The ultrasonic blade is in acoustic communication with the waveguide. The clamp arm is operable to compress tissue against the ultrasonic blade. The electrode is operable to apply radiofrequency (RF) electrosurgical energy to tissue. The sensor is operable to sense a condition of tissue contacted by the end effector. The control module is operable to control delivery of ultrasonic power and RF electrosurgical energy through the end effector based on data from the sensor.